Hi everyone,
I want to populate the 'Department' drop-down field (which has specific values, like IT, Sales, etc) based on the issue description.
Example -
Issue Description:
Employee Name: FirstName LastName - Employee Location: USA - Employee Department: Marketing - Employee Title: Graphic Designer - Employee Personal Email: testuser@gmail.com - Employee Manager: FirstName LastName
Automation grabs 'Marketing' from the issue description and puts it into the 'Department' field
Please be aware, Department is a drop-down field
Hello @[deleted]
Are you trying to automatically populate the fields in the submission form or after the issue has been created?
What text in the Description is going to be consistent? Will there "Employee Department:" always appear before the text you want to capture? Will the text you want to capture always be followed by "-"? Will the text that you want to capture every have spaces in it or dashes?
If you want to update the drop down field after the issue is created, you could use an Automation Rule to evaluate the Description field and extract the sought after text using pattern matching.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--
Once you have the extracted text you can use that to set the drop down list field. I know you could do it by using a CONDITION If/Else block to evaluate the captured text and using an ACTION: Edit Issue to set the drop down field to the correct corresponding value. I haven't worked out if you can use the text directly to drop down field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.