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...
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.
Thanks for your response, Iam able to achieve this through automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.