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

how to set component "fix value" + "copy from parent"

Виктория February 17, 2023

how to set component "fix value" + "copy from parent".

 

1 answer

0 votes
Bill Sheboy
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.
February 17, 2023

Hi @Виктория 

What do you mean by "component" in your question? 

For example, if you mean the Component field for an issue, your use case might be: how can I set the Components for an issue to a specific value plus any of the values from its parent issue.

If so, you will need to do this with a JSON edit in the rule as there is no built-in "add component" for automation rules at this time.  Instead you would:

  • gather the parent's component values, and format them as a JSON expression
  • add on the new value
  • set the issue component field with the combined JSON expression

Please see this post for more information on that technique: link

Kind regards,
Bill

Виктория February 19, 2023

@Bill Sheboy 
hello. exactly. I`m asking about json code. do you know?

Bill Sheboy
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.
February 19, 2023

Did you look at the link I provided, which provides an example rule and the supporting JSON?

For your use case, you would also include information from the parent issue's components.

Like 駒木大輔 likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events