Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example use case: If the email has 'Dev' or 'QA' in the subject, the ticket needs to be assigned to the user1. If it has 'Deploy' or 'Prod', it needs to go to user2.

  1. Edit Login as Jira Admin and edit the workflow that is associated with your project and issue type.

  2. Select the Create transition and then select the Post Functions tab and click Add post function.

  3. Select “Update Any Issue Field (JSU)” post-function and click Add

  4. In this, add two Regular Expression pre-conditions: One for Dev and another for QA, and add the below regular expressions:
    For Dev :

    Code Block
    ^[\s\S]*Dev[\s\S]*$

    For QA

    Code Block
    ^[\s\S]*QA[\s\S]*$
  5. Select "OR" in the pre-condition section and select “True” under “Preconditions must be”.

  6. Select the Assignee field and add the account id of user1 in the Field Value. Refer to the screenshot below:

  7. Click “Add”.

  8. Similarly, add another Update Any Issue Field (JSU) post-function on the Create transition for 'Deploy', 'Prod' and add the account id of user2 in the Field Value and publish the workflow.

  9. If you want to verify the email body instead of the subject, then replace Summary with Description in the Regular Expression pre-conditions.

  10. Place these post-functions below “Creates the issue originally.” built-in post-function on the create transition.

...