Forums

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

Set up Automation Rules - How can I link issues that are mentioned in a custom field?

Daniela Salvador
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2023

I currently use a custom field for Acceptance Criteria in Jira Issues. One aspect of this criteria is to include the list of prerequisite tickets/issues that must be completed before the dev can begin their work. I would like to create an automation similar to the "Link issues that are mentioned in the comments" feature, but for the acceptance criteria field. 

 

Any help would be greatly appreciated! 

2 answers

2 accepted

1 vote
Answer accepted
Anthony Morais
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.
June 20, 2023

Hi @Daniela Salvador 

Welcome to the Atlassian Community!

I created a custom field called "Tickets (acceptance criteria)" its ID is customFieldId=10065

If I understand what you want, create an automation as shown below, that is, when an issue key is typed in a field it links the issue.

Note: Change the JQL according to your project and item type!!!

Automation custom field compare.png

See the result:

LINK ISSUES.png

 

I hope it helps!

If so, please mark it as accepted answer!

 

Regards,

Anthony

1 vote
Answer accepted
Fernando Eugênio da Silva
Community Champion
June 20, 2023

@Daniela Salvador , Welcome to the Atlassian Community!

 

If I understand correctly, you have a field in Jira where you put issues that are Acceptance Criteria that must be completed before the current issue can be worked on. Now you want to link the issues you put into the Acceptance Criteria field with the current issue, correct?

If this is correct, you need to make something like this:

  1. Your field for 'Acceptance Criteria' needs to be a Short Text Field to be able to add the issue key you want to link.
  2. You need to add the issues for Acceptance Criteria using only their issue keys. Like this: KEY-1111, KEY-2222, KEY-3333
  3. In your automation rule add the field 'Linked Issues' and include the smartvalue of the short text field created.
    1. Select the link type
    2. Select the smartvalue: {{triggerIssue.customfield_XXXX}} (Field ID of short text field key collector)

But I need to confess, you are doing the same thing as just linking the issues using the Link Issues feature

Let me know if I missed something

Suggest an answer

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

Atlassian Community Events