The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation - all the resources you need in one page

36 comments

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Talles Silva
December 8, 2021

Hi @Daniel Eads

Thanks! It worked!

I have another question now about conditional syntax. In my JQL filter I'm looking for 2 bug statuses to submit in the same automation, but I don't want to show this information together in the Slack message. I want it to appear like this, for example:

@here Hello! 

There are open bugs.

High Priority
(bug list)

 

Normal Priority
(bug list)

I don't know how to do this. Do I need to put the {{#lookupIssues}} twice? How do I use the conditional?

 

Thanks in advance!

Talles.

Like John McKiernan likes this
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 Champions.
December 8, 2021

Hi @Talles Silva 

Please take a look at this article on the filtering syntax for list handling/iteration:
https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588

Kind regards,
Bill

Talles Silva
December 8, 2021

Hi @Bill Sheboy

Unfortunately the information on that page didn't help me. I understand that I need to do an if with a lookup inside it, but I'm not able to filter to show only if there is such a condition (it would be a combined conditional). Do you know how I would do that?

I'm trying:

{{#if(exists(issue.priority))}}
{{#if(equals(issue.priority, Alta)}}
Prioridade Alta:
{{#lookupIssues}}
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}

{{#if(exists(issue.priority))}}
{{#if(equals(issue.priority, Urgente)}}
Prioridade Urgente:
{{#lookupIssues}}
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}

The if(equals...) works, but the if(exists....) doesn't and it's sending the same bug list for everything without filtering the priority (or just doesn't). I would like you to check if there is the bug with the defined priority and, if so, send a list of them.

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 Champions.
December 8, 2021

Hi @Talles Silva 

You almost have it...please nest the filtering inside of the lookup, add a missing parenthesis, and check the name rather than the priority value.  For example:


{{#lookupIssues}}
{{#if(exists(priority))}}
{{#if(equals(priority.name, "Alta"))}}
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}{{/}}

If you know the number for your priority, you could also check with just priority rather than priority.name

Thanks,
Bill

Like Talles Silva likes this
Talles Silva
December 9, 2021

Hi @Bill Sheboy

Thanks! Is there any way to display the priority name only once if the priority exists? If I put the priority name inside the if(equals...), the name is displayed for each bug in the list.

{{#lookupIssues}}
{{#if(exists(priority))}}
{{#if(equals(priority.name, "Alta"))}}
Prioridade Alta
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}{{/}}

{{#lookupIssues}}
{{#if(exists(priority))}}
{{#if(equals(priority.name, "Urgente"))}}
Prioridade Urgente
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}{{/}}

JIRA.png

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 Champions.
December 9, 2021

Hi @Talles Silva 

Put things outside the loop (iterator) that you want just once, and things inside to repeat with each issue.  Perhaps try this:

Prioridade Alta
{{#lookupIssues}}
{{#if(exists(priority))}}
{{#if(equals(priority.name, "Alta"))}}
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}{{/}}

Prioridade Urgente
{{#lookupIssues}}
{{#if(exists(priority))}}
{{#if(equals(priority.name, "Urgente"))}}
* <{{url}}|{{key}} - {{summary}}>
{{/}}{{/}}{{/}}

Like Talles Silva likes this
Talles Silva
December 10, 2021

Thank you, @Bill Sheboy

Becky Drake
June 9, 2023

How can I create automation to trigger the creation of a task when a custom field is set to a specific value? 

Brock Jolet
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 Champions.
June 9, 2023

@Becky Drake 

You'll want to trigger based on value changes, then use a conditional to check for the specific value.

Screenshot 2023-06-09 102345.png

Yusuf Kör
June 26, 2023

I want to create a single automation for "Version Created" + "Version Updated".
There is a rule for "Multiple issue events", but none for "Multiple version events".

Is there another way to create a version event automation that triggers on multiple event types, or do I need to create two separate automations?

Thanks
Yusuf

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 Champions.
June 26, 2023

Hi @Yusuf Kör -- Welcome to the Atlassian Community!

First thing: I recommend creating a new question for requests like this.  Otherwise only the people following this older thread will see it.  Thanks!

Next, I believe you will need two rules for this scenario.

Kind regards,
Bill

Like # people like this

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

TAGS
AUG Leaders

Atlassian Community Events