Forums

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

I wonder if it is possible to use Advanced Comparison to compare half value fields in an epic and an

Emilia KASPRZYK
Contributor
December 5, 2023

Cześć

 

I would like to automatically copy the security level from the epic to the task and this is the rule I have created, it works perfectly.

However, it eats up almost all of my automation limit.

I wonder if it is possible to use Advanced Comparison to compare half value fields in an epic and an issue?

I would like to define it more or less like this:

1. If Issue.SecurityLevel =! ParentSecurityLevel

2. than copy Security Level from Parent

 

Do you think this is possible? How exactly do you write down smartvalue. The correct syntax for customised fields is a problem for me.

 

2023-12-05 18_26_22-Jira Configuration - Microsoft​ Edge.png

 

1 answer

1 accepted

0 votes
Answer accepted
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.
December 5, 2023

Hi @Emilia KASPRZYK 

That might be possible...Are these custom fields you have created?

If so, please use this how-to article to identify the supported smart values (and custom field ids) for your fields.  Smart values are name, spacing, and case-sensitive so using the correct one is key.  Essentially the steps are:

  1. identify an example issue with your fields
  2. using a web browser, call a REST API function to find the smart values: yourJiraURL/rest/api/2/issue/yourJiraIssueKey?expand=names
  3. search on the page for your field, such as with CTRL-F
  4. if you find your field, it will show the correct smart value (and custom field id), and the structure of how it is used in the issue.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

And once you have that information, you can compare them with the Advanced Compare Condition like this, substituting in the correct smart values.  I am assuming these are single-select fields in my example.

  • first value: {{issue.Security Level.value}}
  • condition: does not equal
  • second value: {{issue.parent.Security Level.value}}

 

Kind regards,
Bill

Emilia KASPRZYK
Contributor
December 7, 2023

Hi,

thank you. That was good direction.

 {{issue.issue.security.id}} and {{issue.parent.security.id}}

{{issue.security}}

The text of the security level.

Available properties:
{{issue.security.name}} - Returns the security level name.
{{issue.security.id}} - Returns the security level ID.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events