Using Jira Automation, how can I copy from subtask to parent

Chad Wolpert July 17, 2018

I have a few subtasks, and each subtask goes through a small workflow

 

For example in "Test Issue 1", I have a subtask called "Audio"

"Audio" goes through the following workflow: Start -> Audio Recording -> Audio Editing -> Done

Person x will work on Audio Recording while person y or z (or anyone else) will be assigned to Audio Editing.

I then want to copy the username of the person who did the Audio Editing into the custom field "Audio Editor" of "Test Issue 1"

2 answers

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2018

Hi @Chad Wolpert - Welcome to Community! :)

Not sure if this is possible using "JIRA Automation". I know that JIRA Suite Utilities have ability to copy value from other filed (https://jsutil.atlassian.net/wiki/spaces/JSUTIL/pages/786628/JIRA+Suite+Utilities+Workflow+Post-Functions) This should be good for your requirement. If not then Script Runner might be handy here.

Overall on the parent you already have information who is assigned to a sub-task...

JIRA-Creating-a-sub-task-2.jpg

And if the Audio Editing is the last action you do not need to copy the value to know who was it.

Chad Wolpert July 17, 2018

The issue I have is that one subtask is done by multiple people, so even though on the parent task I can see the person who did the last action, I also want to be able to see who did the prior actions (like the audio recording)

Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2018

Hmm.. Can you change your design to have standard sub-task with workflow TODO -> IN PROGESS -> DONE and create two sub-tasks called Audio Recording and Audio Editing? 

If not then you need to try with Script Runner or any other solution that would use Post Function (JSU) or REST API executed on transition and updating field values. It is definitely possible.

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2018

I do not think that this is possible using "JIRA Automation". When using JSU https://jsutil.atlassian.net/wiki/spaces/JSUTIL/pages/786628/JIRA+Suite+Utilities+Workflow+Post-Functions there is a post function that copy a value from other field. It should cover your requirement. If not then Script Runner might be handy here.

Overall I am not sure why you need to copy that since on the parent you see all sub-tasks and can see who was assigned to it.

JIRA-Creating-a-sub-task-2.jpg

So if the Audio Editing was thee last action it would be always the last assignee

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events