I have a requirement to create a sub-task in following situation in groovy script:
-> When Parent moves to resolved status it generate Sub-task A
->While doing above transition, if Parent has value set to 'No' for a custom field called "Flag", then it will create another sub-task B and it will have link to Sub-task A.
Can someone please help to get the groovy script?
Thank a lot in advance.
Have a look at https://library.adaptavist.com/entity/create-a-subtask-and-link-to-parent-issue-in-jira - you can probably drop all the "link to parent" - you don't really need it, as there is an inferred link anyway.
Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events