Versions Compared

Key

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

If you’ve configured your instance to create issues through email requests, then this article explains how to automatically assign newly created issues(through email requests) to a specific user - based on keywords in email subject/email body.

Instructions

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

  1. Add “Update Any Issue Field (JSU)” post-function on the Create transition.

  2. In this, add two Regular Expression pre-conditions : one for Dev and the other 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]*$

  3. Select "OR" in the pre-condition section. Select “True” under “Preconditions must be”.

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

...

  1. Image Added

  2. Click “Add”.

  3. 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.

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

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