Create a subtask

Naman Mandli November 16, 2018

Hello,

 

I have a requirement to create a sub-task in following situation in groovy script:

Parent

-> 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. 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 17, 2018

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.

TAGS
AUG Leaders

Atlassian Community Events