Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

editing parent issue fields in a workflow transition of sub-tasks


I'm trying to update some custom fields of a parent issue in a transition of a sub-task workflow. For this, I need to get the parent issue Id from the issue object (of the sub-task).

Unfortunately I couldn't find the REST reference for this. Where is a comprehensive documentation of ScriptRunner Issue Object? Would you please point me to the right method?

Thank you in advance, pj

1 answer

1 accepted

0 votes
Answer accepted
Thomas Deiler Community Leader Jan 30, 2018

Dear @Pujan Ziaie,

Firing a GET/ (this is a sub-task) will also return the information about its parent (JSON response):

"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "10500",
"self": "http://128.0.01:8080/rest/api/2/issue/10500",
"key": "ISSUE-6",
"fields": {
"issuetype": {
"parent": {
"id": "10200",
"key": "ISSUE-4",
"self": "",
"fields": {

In this case the parent was ISSUE-4.

Is that what you where looking for?


Thanks for the tip! Well I was more looking for something like or something, so that I won't have to call yet another web service. But if the field is non-existent in the issue object in the post-function, then I guess there is no other way.

Thomas Deiler Community Leader Feb 01, 2018

Dear @Pujan Ziaie,

was my answer fine enough to be accepted or do you need more information?

So long


Hi Thomas,

Sure it was correct. I was just waiting for a method I could possible call on the issue object to get parent Id to avoid calling a REST function. But now that no one has expressed anything, I guess the method doesn't exist.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,953 views 11 5
Join discussion

Community Events

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

Events near you