Automation for new linked created issue

Jack Harley October 16, 2024

Hi! 

Is it possible to make automation in scenario like:

1. I have few epic issues which summary have "[BUG]"

2. If i create new issue with issue type "bug" and link to the epic which summary have "[bug]" then edit label,description and end date in new issue with issue type "bug"

3. If i create new issue with issue type "bug" and link to the epic which summary dont have "[bug]" then no reactions required.

 

Thanks for help! 

2 answers

0 votes
Marc - Devoteam
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.
October 16, 2024

Hi @Jack Harley 

@Manoj Gangwar is providing a solution.

But the issue is based on text searching, its certain to be causing failures on the rule.

searching for text is never a 100% waterproof in Jira as its a fuzzy search.

If you have a single Epic where you link all you bugs to, adjust the rule and set the following

"Epic Link" = <epic's issueid>

Jack Harley October 16, 2024

Hi, could you provide me screenshot of full automation? 

Marc - Devoteam
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.
October 16, 2024

Hi @Jack Harley 

@Manoj Gangwar has written it out in detail.

This should provide you with the details to create the rule.

My suggestion is to replace,

Step 3: Add Condition for Linked Epic

Add a JQL Condition:

Add a JQL condition to check if the issue is linked to the Bug epic 

Use a JQL like:

"Epic Link" = <epic's issueid>

Jack Harley October 16, 2024

But i cant search "Step 3: Add Condition for Linked Epic" in conditions. Could you give me screenshot of this?

Marc - Devoteam
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.
October 16, 2024

Hi @Jack Harley 

The condition to pick is named "JQL Condition"

Jack Harley October 16, 2024

I have many epic issues in project but not all have in summary "[BUG]". If I used both of this JQL I had an errorsIMG_2392.jpeg

Marc - Devoteam
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.
October 16, 2024

Hi @Jack Harley 

You need to replace the text "Epic Link" with the Epic Link name of the Epic the issues need to link to

Jack Harley October 16, 2024

Still dont work for me. Please could you provide screenshot with full of automation? Maybe I have some incorrect details.

Marc - Devoteam
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.
October 16, 2024

HI @Jack Harley 

I don't run DC, so can't give you a rule.

Are you using Epic Link field or Parent when you manually link an issue to an Epic?

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2024

Hi @Jack Harley Welcome to the community! 

You can create an automation rule like below. 

Select Trigger:

Choose the Issue created trigger. This will initiate the rule when a new issue is created.

Step 2: Add Condition

Add a Condition to Check Issue Type:

Add a Issue fields condition.

Set it to check if the Issue Type is equal to Bug.

Step 3: Add Condition for Linked Epic

Add a JQL Condition:

Add a JQL condition to check if the issue is linked to an epic with a summary containing "[BUG]".

Use a JQL like:

issue in linkedIssues("Epic Link") AND summary ~ "[BUG]"

Step 4: Define Actions

Edit Issue:

If the previous conditions are met, add the Edit issue action.

Set the fields you want to edit:

Labels: Add or modify labels as needed.

Description: Update the description as desired.

End Date: Set the end date as required.

Jack Harley October 16, 2024

Have a problem with add this 😏

Could you provide me screenshot of this?

Jack Harley October 16, 2024

@Manoj Gangwar  Hi 
I have many epic issues in project but not all have in summary "[BUG]". If I used both of this JQL I had an errorsIMG_2392.jpeg

Suggest an answer

Log in or Sign up to answer