Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Assignee from Sub-task to parent custom field

Ammara_Samar January 27, 2020

Hello, 

I want to fetch value from "Assignee" field of linked issue type Sub-task. And assign it to one of the custom field of parent.

Appreciate your help.

2 answers

1 vote
Leo
Community Champion
January 27, 2020

Hi @Ammara_Samar,

If you are using JSU plugin you can achieve this without any scripting. 

it does provide post-function called "Copy Value From Other Field (JSU)"

>> Copies the value of one field to another, either within the same issue or between related issues (as issue link, Parent/Sub-Task, Epic/issues in Epic or found by JQL).

 

BR,

Leo

Ammara_Samar January 27, 2020

Thanks @Leo  for your reply,

Unfortunately, we don't have JSU Plugin and its paid add-on.

0 votes
Hana Kučerová
Community Champion
January 27, 2020

Hi @Ammara_Samar ,

is it possible to use some add-on to achieve this? I would recommend you to use Adaptavist ScriptRunner and create custom groovy script. When this copy action should happen? Like during some transition?

Ammara_Samar January 27, 2020

Thanks '@Hana Kučerová  for your reply,

Yes I want to apply it on certain transition in workflow.

Dear, any alternate option than to go for groovy script?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2020

You are going to need one of the scripting or automation plugins. 

If you do go for Scriptrunner, https://library.adaptavist.com/entity/copy-field-value-from-parent-issue-to-sub-task-upon-creation might be a good starting point.  It's actually upside-down, but should give you enough of the code you need to invert it.

Like Hana Kučerová likes this

Suggest an answer

Log in or Sign up to answer