Hi Community,
I have to write my first groovy script for jira and my issue is how to change story status to done if all tasks in this story is done.
I appreciate all the help!
Nikola
If you have the ScriptRunner add-on and tasks are actually sub-tasks, then better use the built in function, called Transition parent when all subtasks are resolved
If tasks are not subtasks then it will not be a simple script.
In this case you have to write a script yourself. First of all, epics, stories and tasks are connected by links. You can get all linked issues to an issue. You can find more info here:
https://community.atlassian.com/t5/Jira-questions/Linking-Issues-in-jira-using-groovy/qaq-p/98301
Then you need to check the statuses of all linked issues and transition the parent issue, if all the linked issues are in the required status. You can find more info here:
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.