Can I Extract a Field from Task Description to Set the Assignee in Jira?

sripal_martha October 28, 2024

Hi everyone,

 

I’m working on an automation in Jira and need some help. Is it possible to extract a specific field from the task description to automatically set the assignee for a ticket?

For instance, I have a sent_user field in the description that contains a Gmail address, and I want to use this field to automatically assign the ticket to that user.

Any tips or examples on how to set this up with automation would be greatly appreciated!

1 answer

1 accepted

1 vote
Answer accepted
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2024

Hello, Good day. You can try to update a custom field with the email address of the user from the description and then copy the value from the custom field to assignee field.

https://community.atlassian.com/t5/Jira-questions/How-to-extract-an-email-address-from-issue-description-field/qaq-p/2413258

sripal_martha October 29, 2024

Hi, thanks for your message! I used the following expression in the comment section:

Hi, @{{issue.description.match("(sent_user\":\"([^\"]+)").replaceALL("@","")}} this is test automation!
The output in the comment section was: Hi, @sripal.martha this is test automation!. However, it did not tag me in the comment section. Additionally, the automation rule failed to auto-assign the issue to me.

For the assignee, I used the smart value {{issue.description.match("sent_user\":\"([^\"]+)").replaceAll("@", "")}} but it didn’t assign the issue to me either.

sripal_martha October 29, 2024

@Mohanraj Thangamuthu  this is my automation rule rule.png

sripal_martha October 29, 2024

audit log says user doesnot exist or you dont have required permissions but i'm the administrator for the project!auditlog.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events