You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have several fields.
the fields are as follows:
Question 1
-Yes
-No
Question 2
-Yes
-No
Question 3
-Yes
-No
Need Risk.
-Yes
-No
How to do it when one of the three questions selects the value Yes,
then the Need Risk field will automatically become Yes.
And if all the question fields value is No,
then the Need Risk field will automatically become No.
Hi @RIZKY JTUASIKAL ,
Thanks for reaching out to us!
If you want to update the field value on a transition, then add the Set Issue Fields post function in your workflow.
Please add a Set Issue Fields Post function and under the Add field add “Need Risk“ with the below script:
{% if issue.fields.customfield_10094.value == "Yes" or issue.fields.customfield_10095.value == "Yes" or issue.fields.customfield_10096.value == "Yes" %}
Yes
{% elif issue.fields.customfield_10094.value == "No" and issue.fields.customfield_10095.value == "No" and issue.fields.customfield_10096.value == "No" %}
No
{% endif %}
Please modify the custom field IDs in the script
Update and save the post function.
If you want to update the field when one of the fields question1\question2\question3 are updated\modified, then please add a Event-Based Action with Issue Field Value Changed event.
Add the fields Question 1, Question 2, and Question 3 in the Fields to monitor section.
Add the Set Issue Fields Post function similarly as above.
Please let us know if you have any more questions on this.
Thanks,
Reshma
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.