Create subtask for each label

I have a custom field in which multiple labels can be added.

I want to have a subtask created for each label, with the title of the subtask as "[ParentIssueTitle] - [ParentLabelText]"

How can I achieve this?

Best regards

3 answers

1 accepted

Accepted Answer
0 votes

How to create multiple issues and How to create multiple issues - advanced example show techniques for doing this. In your case you will need to use %original_labels_comma_separated% replacement variable in the multiple issue value field. The advanced example includes duplicate issue control techniques.

For the summary substitutions, use %original_summary% - %entry%.

there should be made custom development, to have possibility creating subtasks

0 votes

Best approach would be to have a workflow transition for "create subtasks from labels" (probably only once in the workflow, or you could end up with thousands of duplicated subtasks)

Once you've got that, I'd write a plugin that provides a post-function that will iterate over the labels currently on the issue and create a subtask for each (or, if you have the script runner plugin, use that, as it saves you having to develop plugins)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

454 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you