Forums

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

Custom copying fields from parent issue to sub-task

Nikita Larin April 12, 2019

Hello!

 

Can you help me with my problem?

Now we use Automation Lite for Jira Cloud.

So we can copy fields values from parent issue when they're not edited in sub-task creation screen manually. But when I set value in field manually in creation screen - application removes my value and copy value from parent issue.

How can I make, so that when I set value in field manually in creation screen - application will set my value and will not copy value from parent issue. And when I don't set value in field manually - application will copy value from parent issue.

Hope you understand me.

 

Sorry for my bad english ...

 

Regards, Nikita.

1 answer

1 vote
Sanjana _Alacriz_
Contributor
April 13, 2019

Hi @Nikita Larin  ,

 

Did you try using/adding "Condition" component and checking if the custom field value is null? 

This way the action (setting value) will only be applicable if condition matches.

 

Thanks,

Sanjana

Nikita Larin April 17, 2019

Ok,

Right now I have script like on attachment.

And how can I add condition for every field value?

For example, I want to create sub-task, all field values except "Labels" and "Steps" will not be edited at sub-task creating. What condition will be here? And later I want to create sub-task with only edited fields like "Components" only.

What condition I need to create for every possible case?

Thank you!

 

 

Untitled.png

Suggest an answer

Log in or Sign up to answer