I have seen many solutions for copying a Parent custom field value to a subtask custom field, but not the other way round.
Can someone help please? Is it possible via ScriptRunner or something else, to copy the value of a subtask custom field after transitioning to Done, to the Parent custom field of the same field? Would a post function script do it or another? What would the script look like?
Background
The custom field value is first entered into the subtask after the work is done. We need this value copied to the parent before 15 other subtasks are completed for the same Parent issue.
Please advise of a solution. Thank You in Advance.
Hi - it looks like this can be done with ScriptRunner, based on the conversations here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tanwa Arewa
Yes, ScriptRunner can definitely be used to do this. The examples you saw to copy from parent to subtask will not be a lot different for doing the reverse.
You can retrieve parent issue object using by something like this.
issue.getParentObject()
Where "issue" is an object.
To copy value from sub task to parent you can use a listener or may be a script post-function. You would use a script post-function if you need to perform some actions in specific order. Listener responds to event.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.