Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,022
Community Members
 
Community Events
176
Community Groups

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

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

2 votes
Rilwan Ahmed Community Leader Jan 16, 2023

Hi @Timothy Harris ,

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

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

Hi @Rilwan Ahmed

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

Rilwan Ahmed Community Leader Jan 20, 2023

Hi @Timothy Harris ,

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
Site Admin
TAGS

Atlassian Community Events