Forums

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

Automation Linking issues with Custom Fields

Juan Camilo Gomez January 29, 2024

Hi, I want to create an automation that automatically links the incidents that share the same parameter in a custom field which in this case is 10115, the scope of the rule is to multiple projects.

I will show you what I did, however it has not worked... I hope someone can help me to find the error and be able to run it successfully.

Captura de Pantalla 2024-01-29 a la(s) 12.16.09 p.m..png

Custom field label: {{customfield_10115}}

Conditional set using a regular expression " [A-Z]+-\d+".

Then link with triggered occurrence.

I adapted the rule structure from the default rule provided by Jira for linking issues via comments.

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.
January 29, 2024

Hi @Juan Camilo Gomez -- Welcome to the Atlassian Community!

When you note the rule has not worked, what do you observe happening?

Would you please post an image of the audit log details?  Those may explain what you are observing.

Finally, when using the Issue Created trigger, that can fire so quickly that the data is not yet available for the rule to use.  The symptom of that is some fields may appear empty or conditions will fail. 

The work-around for that symptom is to always add the Re-fetch Issue action immediately after the Issue Created trigger.  That will reload the issue data before proceeding, slowing down the rule a bit.

Kind regards,
Bill

Juan Camilo Gomez January 29, 2024

Of course, these are the screenshots of the audit log before placing the "Re-fetch".

Captura de Pantalla 2024-01-29 a la(s) 4.30.27 p.m..pngCaptura de Pantalla 2024-01-29 a la(s) 4.30.20 p.m..png

Once I added it, and changed something in the condition, I get the following error in the audit:

Captura de Pantalla 2024-01-29 a la(s) 4.43.57 p.m..png

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Link-issues

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.
January 29, 2024

That error seems to indicate whatever is being passed to link the issues is invalid.

Would you please show the details of your Issue Link action?

 

If you are trying to link to issues with the same value in a custom field, your rule would need to branch to them with JQL and then link them to the trigger issue.

Suggest an answer

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

Atlassian Community Events