Is is possible to compare EPIC LINK using advance compare option (smart value) in Jira automation

Harsh
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.
March 1, 2024

Hi All,

I want to create a automation, when on create/transition from Open to In Progress, it should check whether a EPIC LINK is present or not (Example: Epic Link is PROJ-145 or proj-145, both are different) and perform some action.

I have tried the following smart value in Advanced option:

Option 1

-  if {{issue.Epic Link}} contains/equals PROJ-145 then edit issue

Option 2

- if {{issue.customfield_123}} (which is the ID of the field) contains/equals PROJ-145

When running the rule, it says no action performed and in when checking the audit logs - it says Issue does not match the condition.

If any leads it will be helpful. I am using DC.

2 answers

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.
March 4, 2024

Hi @Harsh 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Kind regards,
Bill

Harsh
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.
March 5, 2024

Hi @Bill Sheboy 

Unfortunately, Cant attach the image. But I have explained everything is detail in above thread, including the error which I am getting.

Nonetheless, thanks for offering your help.

Thank you.

 

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.
March 5, 2024

What you have provided is not enough context to understand the symptom you describe.

If you are unable to post images for some reason, please

  • fully describe your rule as text, listing each step, and include all details of each trigger, action, condition, and branch
  • fully list the contents of the audit log details for the rule execution; consider copy-and-pasting the text from the audit log details into your post
  • describe exactly what is not working as expected

If this is not possible, I recommend working with your Jira site admin to submit a ticket to the Atlassian Support team, as they will be able to look directly at your Jira rule for context: https://support.atlassian.com/contact/#/

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 1, 2024

Hi @Harsh ,

 

To get the fields of the epic, you will need to use "issue.epic.<field>". For example "issue.epic.key" would be PROJ-145 in your case.

 

Hope that helps!

Harsh
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.
March 4, 2024

Hi @Hariharan Iyer 

I am not trying to get the field of the epic. I want to compare the epic link(which is a system field).


My use case is - if Epic Link Contains the value PROJ then edit the issue else not.

Since Epic Link is a locked field by default I guess, I cannot compare it.

Thank you

 

 

Suggest an answer

Log in or Sign up to answer