I am looking for a method to update a parent issue custom field with data from a sub-task when I transition a sub-task. (perhaps some post-function?)
Each of our issues will have one sub-task that will be assigned to a different user from the owner of the parent issue.
Part of our workflow requires the owner of the sub-task to input some text into a custom field. When the sub-task is closed I would like to copy that text to a custom field on the parent issue.
(for reporting purposes - we only look at the parent issue, but want to see this text update captured on the sub-task)
I hope this makes sense and any suggestions are welcomed
There's now a very easy to configure way to keep fields for parents and sub-tasks in sync using Automation for JIRA!
(this example updates the description, in a sub-task when the parent changes, but you could reverse this too so a sub-task update, updates the parent)
Run a script as postfunction on the tansition to Done on the subtask.
def parentKey = issue.fields.parent.key
def issueKey = issue.key
def parent = get("/rest/api/2/issue/" + parentKey)
def parentUpdate = put('/rest/api/2/issue/' + parentKey)
customfield_11901: issue.fields.customfield_11901, // Customer updated from number field to text field
customfield_11900: issue.fields.customfield_11900 // Vendor updated from number field to text field
Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...
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