If you’ve configured your instance to create issues through email requests, then you can refer to this article explains to learn how to automatically assign newly created issues (through email requests) to a specific user - . We will assign issues, based on the keywords in the email subject/email body - using the Update Any Issue Field (JSU) post function.
Info |
---|
Use cases:
|
Instructions
Example use case scenario: If the email has 'Dev' or 'QA' in the subject, the ticket has needs to be assigned to user1. If it has 'Deploy' or 'Prod', it goes to user2.
...
needs to go to user2.
Log in as a Jira Admin and go to the workflow that is associated with your project and issue type.
In the workflow, click Edit to switch to Edit mode.
Select the Create transition, then select the Post Functions tab and click Add post function.
Select the Update Any Issue Field (JSU) ” post -function on the Create transition.In this, add function then click Add.
Add two Regular Expression pre-conditions: one One for Dev and the other for QA and another for QA, then add the below following regular expressions:
For Dev :Code Block ^[\s\S]*Dev[\s\S]*$
For QA :
Code Block ^[\s\S]*QA[\s\S]*$
Select "OR" in the pre-condition section . Select “True” and select True under “Preconditions must be”.
Select the Assignee field and add the account id ID of user1 in the Field Value. Refer to the screenshot as illustrated below:
Click “Add” Add.
Similarly, add another Update Any Issue Field (JSU) post - function on the Create transition for 'Deploy', 'Prod' and add the account id ID of user2 in the Field Value and publish the .
Publish your workflow.
If you want to verify the email body instead of the subject, then replace Summary with Description in the Regular Expression pre-conditions.
Place these post - functions below “Creates Creates the issue originally.” built-in post - function on the create transition Create transition.
Info |
---|
It is recommended that you test this scenario in a non-production environment before implementing it in a production environment. |