Forums

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

Scriptrunner: Set field value dependent from epic status

Marco Schöning April 10, 2019

Hello Jira experts,

I have to find a solution for the following problem which is in my opinion not possible out of the box:

 

I have an Epic with the following worklow:

"Backlog" -> "Do" -> "On-hold" -> "Done"

All issues (tasks and subtasks) which are linked to the Epic have a custom field which is named "On-hold"

Now, if the status of the Epic becomes "On-hold" a want that all custom field values in the linked issues get the value "yes". If the epic is not in status "On-hold" the value of the custom field should be "no"

 

I know that there is a possibility to solve the problem via post function "Update any field issue (JSU)" but this only changes the custom field values in the time when the transition of the Epic has been done. This means if the Epic is in status "On-hold" new created tasks with a link to this epic do not have the value "yes". Furthermore, the custom field in the sub-tasks is not affected by this post function.

 

In sum, I want that the values in the custom field "On-hold" of all issues in the Epic (tasks, including sub-tasks) change into "yes" if the status of the Epic changes to "On-hold". Oherwise, custom field value is "no"

If possible I prefer a solution with the scriptrunner (maybe scripted custom field?)

 

I hope I descriped my query clearly and thank you in advance!

1 answer

0 votes
Marco Schöning May 17, 2019

Hello community,

Do you may have any other idea to solve this problem, perhaps without using the sriptrunner?

I would be happy about any answer.

Thanks! 

Suggest an answer

Log in or Sign up to answer