Forums

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

Automation rule needs to be triggered based on issue name

Alvaro Landin September 19, 2023

Hello community,

How could I create an automation rule where the trigger is based on which is the name of a previously created issue.

In other words, I want to execute a rule only when a specific story (XX) is created so I can include some sub-tasks under it. This story is created weekly, so I need this rule to be executed each time a story with name XX is created.

Any help will be highly appreciated!

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.
September 19, 2023

Hi @Alvaro Landin 

I recommend trying the Issue Created trigger, following that immediately with a condition test on the summary.  The rule will trigger more often but it will not continue processing if it does not match your condition.

Kind regards,
Bill

Alvaro Landin September 20, 2023

Hi @Bill Sheboy ,

Indeed! I have used that trigger and it works by including an 'If" based on summary field.

I still have one additional query maybe you could help me with.

As an story is being created every week under an already existing epic, after some months I will end up with 20 stories named the same way. Would be possible to include in the rule anything that adds a prefix (or something similar) so I can differentiate one weekly issue from the previous one. So then if the story is called "Weekly analysis" I will end up with something like:

W1 Weekly analysis

W2 Weekly analysis

W3 Weekly analysis

W4 Weekly analysis

......

Let me know if there is a way of having something like that in Jira.

Thanks in advance!

Alvaro

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.
September 20, 2023

Yes, that is possible using the format() function for date fields.  Please look here to learn more about that:

https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html

Alvaro Landin September 22, 2023

Hi @Bill Sheboy ,

But can this be applied in the Summary field of an issue created with an scheduled trigger?

I have the feeling we are talking about different things. I could use the current date to specify the week of the year (or week inside a month), so this will differentiate each story from the others. But how could I include that "differentiator" in the summary field of each story with my automation rule?

Thanks in advance for your help!!

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.
September 22, 2023

I do not believe you can do that in the scheduled trigger's JQL; specifically, I do not believe that JQL can be dynamic.

Instead I was suggesting to allow the rule to fire more often than needed and then use an advanced compare condition to limit what gets processed, such as by your timeframe/week information in the issue summary.

0 votes
Alvaro Landin September 19, 2023

I guess that I should use some kind of JQL query to detect that specifi story, but I currently struggle to write it properly.

Suggest an answer

Log in or Sign up to answer