Forums

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

Dynamically change custom field value(Business Role) on change of Assignee on Create Screen.

Gopikrishna_Kunduru May 18, 2025

I have two fields Business Role and Assignee. When ever i change the Assignee i want to change the value in Business Role on create screen dynamically. I have used behaviors but its not working as expected. Can someone assist on this.

Ex: 

Business Role

Role1

Role2

Role3

Assignee

User1

User2

User3

 

When i change the assignee to User1 , Business Role should change to Role1...

 

 

 

 

 

2 answers

0 votes
Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2025

Hi @Gopikrishna_Kunduru 

Is there a reason this needs to happen on the create screen?

As far as I can see you can set up a couple of simple automations to achieve what you need. 

1. When issue created > IF assignee "X" > Edit field Business role. 

This will assign the role on creation of the work item.  

 

2. When issue updated > IF assignee "X" > Edit field Business role.

This will check for changes of the work item thought-out it's life. 

These 2 automations would achieve your outcome. 

Let me know if this helps

Thanks

Aaron. 

Gopikrishna_Kunduru May 19, 2025

Thanks for your response, Iam able to achieve this through automation.

0 votes
Kai Becker
Community Champion
May 18, 2025

Hi @Gopikrishna_Kunduru 

thank you for your question. Do debug your issue: could you post some screenshots of your current configuration?

To be honest: I haven't had the best results with behaviours in Cloud. An alternate app I can imagine would be Templating.app 
This one also has a behaviour feature.

Gopikrishna_Kunduru May 18, 2025

Thanks for your reply. Below is the behavior script code: However the BusinessRoleField value do not change once assignee is changed.

const BusinessRoleField = getFieldById("customfield_10176")
const assigneeField = getFieldById("assignee")

console.log(priorityField.getValue().name)

switch (assigneeField.getValue().name) {
case "623a98c9ee1b5a0070287be2":
BusinessRoleField.setValue("Accountant")
break;
case "712020:b30afded-2415-4c86-ad1f-055f06025daf":
BusinessRoleField.setValue("Director")
break;
default:
break;
}

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