How to automatically populate issue fields based on issue's description

Deleted user January 16, 2023

Hi everyone,

I want to populate the 'Department' field 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

 

 

2 answers

1 accepted

0 votes
Answer accepted
Deleted user January 31, 2023

2 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2023

Hi @[deleted] ,

This can be done using smart values in the Automation rule.

Please follow below steps

Go to Project settings --> Automation --> Create rule --> Issue created
New action --> Edit Issue
Select "Department" field in the "Choose fields to set"
Add below line in the text box
{{issue.description.substringBetween("Department:"," -")}}{{issue.Department}}
Click Save.

Please note: Department field should be a text field. 

Rule should look like below 

image.png

Deleted user January 17, 2023

Hi @Rilwan Ahmed


Thanks for your assistance, I should've mentioned this but Department field is a drop-down field with set results, 'Marketing' being one of them. I tried putting 

'{{issue.description.substringBetween("Department:"," -")}}{{issue.Department}}into a variable and then placing it into the Department field, however it didn't seem to do anything. Is there anyway for me to get it to work with a dropdown field?

 

1.png2.png

Deleted user January 18, 2023

Hi @Rilwan Ahmed

Do you have any advice regarding what I've posted?

Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2023

Hi @[deleted] ,

Sorry for the delay. I am not aware on how to do it for drop down fields. But please go through this link and check the section Jira smart values - List. This will sure help you to know if its possible or nor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events