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
Dear @Pujan Ziaie,
Firing a GET/ http://188.8.131.52:8080/rest/api/2/issue/ISSUE-6 (this is a sub-task) will also return the information about its parent (JSON response):
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 issue.fields.parent.id 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.
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 ...
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