Forums

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

Automation: condition on project setting

ICMS _ JIRA October 10, 2022

Hi, 

 

we would like to execute a jira automation on an issue only if a specific condition on the project is met. 

Use case:

If a team member A assigns an issue to an user B that has a specific role (customer), the security level changes to external. To raise awareness, we send an email to user A that reminds him that the issue is now visible to external users. 

 

However, there are some projects that don't need to differentiate between customer and team member whe it comes to security levels. For these projets wihtout security levels, the automation should NOT be active. 

 

 

We are looking for a condition within the automation rule that goes something like this:

- if the project of the edited issue has security scheme xy, then do ... 

However, we can't find the possibility to define a condition for the project, only for the issue itself. 

 

Are we missing something or is this not possible? 

 

Thank you in advance

 

3 answers

2 accepted

2 votes
Answer accepted
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.
October 10, 2022

Hi @ICMS _ JIRA -- Welcome to the Atlassian Community!

There is nothing built into automation rules to support such a check. 

However you could call the REST API from the rule using a web request, checking either the issue or project security scheme.  Such a rule would take a few seconds to run due to the API call.

Kind regards,
Bill

ICMS _ JIRA October 12, 2022

Thank you for the quick response!

1 vote
Answer accepted
Walter Buggenhout
Community Champion
October 10, 2022

Hi @ICMS _ JIRA and welcome to the Community!

No, there is not such a setting. However, in the configuration of your automation rules you can specify the list of projects the rule would apply to.

Admittedly, you would need to manage/update your automation rule potentially when you add new projects, but it would be manageable through a bit of documentation and governance. And it may be a feasible workaround for your use case.

Hope this helps!

ICMS _ JIRA October 12, 2022

Hi,

okay, many thanks for the quick response!
We will probably do it this way..

0 votes
Mohamed Benziane
Community Champion
October 10, 2022

Hi,

Welcome to the community

You can access some project detail (id, key..) via smart value

You could try to create a condition based on this value like if project key = XXX do that or do that. The issue with this scenario is you will need to have a hardcoded list.

ICMS _ JIRA October 12, 2022

Hi, 

thank you for the quick response!

It seems like that solution is almost like the one suggested by @Walter Buggenhout , so we will porbably do it that way. 

Like Mohamed Benziane likes this

Suggest an answer

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

Atlassian Community Events