Forums

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

Automation: Trigger an action with field condition environment

Matthieu SIGOILLOT July 29, 2024

Hi Atlassian Community,

 

I try to set up a new automation rule that change a due date depending of 2 conditions: 

- the Issue Type
- the Environment

First condition is OK.

But for the second, it doesn't work.

Environment is the default field that I customized with 4 values: 'Prod', 'Staging', 'Testing' and 'Dev'.

I want to trigger my rule only when 'Environment equals to Prod'.

So I made this but it's no working: 
Field= 'Environment'
Conditions= 'equals' (I also tried 'contains' but it didn't work)
Value= 'Prod'
Match case (and I also tried without)

 

Capture d’écran 2024-07-29 à 11.36.11.png

 

Audit gives: 
Issue condition
The following issues did not match the condition.

Here a screenshot of the global Rule.

Capture d’écran 2024-07-29 à 11.38.49.png

If anyone as any idea why the 'Environment' Condition is not working, it would be very much appreciated!

 

Thanks.

 

Regards,

Matthieu

2 answers

1 accepted

0 votes
Answer accepted
Anandhi Arumugam _Cprime_
Community Champion
July 29, 2024

Hi @Matthieu SIGOILLOT I think the Environment field that you have chose in this condition is the System provided one and not your custom field that your created. Please go further down in the drop down and choose the right field.

Hope this works for you!

Matthieu SIGOILLOT July 29, 2024

Hi @Anandhi Arumugam _Cprime_

I look in the drop down but there is no other "Environment" field: 

Capture d’écran 2024-07-29 à 14.05.06.png

 

Only the one I selected: 

Capture d’écran 2024-07-29 à 14.05.51.png

Like John Funk likes this
Anandhi Arumugam _Cprime_
Community Champion
July 29, 2024

Hi @Matthieu SIGOILLOT Could you tell me what type of custom field is 'Environment'?

Please check if the field is on the screen and also has value on the issue that you are testing against.

Also, when you choose the field in the screen given above, do you see the drop down to choose the value from? like the one below.
Automation - Environment.png

Like # people like this
Matthieu SIGOILLOT July 29, 2024

Hi @Anandhi Arumugam _Cprime_

 

This is the suggested field "Environment" that I used.
Here it's:
Capture d’écran 2024-07-29 à 17.33.33.png

 

And I don't have any Dropdown in my Rule.

I have to specify a value (empty text field):

Capture d’écran 2024-07-29 à 17.35.58.png 

So I guess this is my problem but I don't see what I'm doing wrong...

 

Anandhi Arumugam _Cprime_
Community Champion
July 29, 2024

Hi @Matthieu SIGOILLOT Looks like the field type here is Cascading Select (Parent and Child option), which is not supported under Issue Fields Condition. Instead, please use the IF or Else: Add Condition Block and use Smart values to get the field values.

Example:

Automation-Environment Cacade.png

Like Matthieu SIGOILLOT likes this
Matthieu SIGOILLOT July 29, 2024

@Anandhi Arumugam _Cprime_ thanks a lot!!

 

Sorry, I didn't use your condition but instead I created a new "Environment" field with only Dropdown option (not cascading with parents and children).

So now I do have the dropdown in the condition and... it works perfectly.

 

Thanks again :)

Have a great day!

Like John Funk likes this
0 votes
John Funk
Community Champion
July 29, 2024

Hi Matthieu

Can you share the audit log, AND the issue you used? 

Matthieu SIGOILLOT July 29, 2024

Hi @John Funk

The audit log is not very helpful.
I tried to add an Action log but didn't help (I guess I'm not doing it correctly).

Capture d’écran 2024-07-29 à 14.08.07.png

The Issue used:

 

Capture d’écran 2024-07-29 à 14.10.24.png

Like John Funk likes this

Suggest an answer

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

Atlassian Community Events