JQL for finding parent of given subtask


I'm looking to write field A's value from a subtask to field A on the subtask's parent.  My attempted solution was to add a post function to a workflow transition on the subtask that would "Write field on issues returned by JQL query". However, I couldn't figure out the JQL to return "this subtask's parent".

I couldn't figure out how to use Write field on linked issues or subtasks for this purpose.

I don't claim to be a JQL expert at all, but was unable to find the solution after some internet research.

Any help is greatly appreciated!



2 answers

This widget could not be displayed.

You should definitely have a look at Jamie's script runner plugin. 


Look for the scripted JQL function 




Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Jira

New 5k User Limit and Other Cloud Updates

Hi all! Lauren here from the Enterprise Cloud marketing team.  I have some exciting Cloud updates from #AtlassianSummit that I wanted to share. We want everyone in your organization to be ab...

95 views 0 3
Read article

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