Forums

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

Is there a way to programmatically add sub-tasks to existing issues?

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

I have modified my workflow so that (4) subtasks are automatically added upon creation of an issue. 

Example:

  • Web Team deploy to QAT
  • DBA Team deploy to QAT
  • Web Team deploy to UAT
  • DBA Team deploy to UAT

How can I programmatically add these 4 sub-tasks to my existing 1000+ issues in the backlog?  I used the Bob Swift Atlassian Add-ons - Create on Transition to add them on issue creation.

 

1 answer

1 accepted

0 votes
Answer accepted
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

Here's a thought ... use the bulk change functionality to transition those issues, using a specially-crafted transition that it available to all statuses and moves the issue from its status back to itself (so as not to change the status), and use a post function to create the subtasks. Remove the transition when you're done.

I'd certainly do this in a test environment first on a small number of issues.

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

Thanks Payne, for the quick reply.  That is a good suggestion, I will give it some thought and try to implement.  I'll post back here once I am able to test it out.  

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

@Payne, your suggestion worked perfectly!  Thanks very much :)

Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

@Pete P Excellent! Glad it helped. :-) 

Suggest an answer

Log in or Sign up to answer