The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Deleted user
January 31, 2023

2 votes
Rilwan Ahmed
Community Champion
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 Champion
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events