Forums

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

Automation : Re-fetch issue data ... does not work

christophe demez
Contributor
October 7, 2022

Hi,

I use JIRA Automation and under some conditions I try to "conditionaly" transit an issue over multiple statuses.

For this I use the following rule:

image.png

 

It is very simple, if we are "at" a specific status, transit to the next one and re-fetch the issue.
Then, process with the next status.

But, I got error when I do this, the first status transit correctly, but the condition "if status = 'Delivered'" fail ... even if I have re-fetch the issue (Delivered is the status we just transited to).

If someone has an idea of the problem, it will really help ?

Ps: I also join the audit log for review.

image.png

1 answer

1 accepted

2 votes
Answer accepted
Mohamed Benziane
Community Champion
October 7, 2022

Hi,

You need to do something like this in each if block

2022-10-07 10_51_32-Automation - The Jira of Champions.png

christophe demez
Contributor
October 7, 2022

It can work, indeed ... but why de re-fetch does not work ?
If I refetch the issue should be up to date, then when I test the condition it should be "true".

I do not understand why this automation does not work ?

 

PS: BTW, with your automation, I do not need the refetch, right ?

Thx

Mohamed Benziane
Community Champion
October 7, 2022

When you enter a if block you can't enter another block even by fetching data. So you need to put everything in one block, because the choice to enter one of the if block is defined by the first trigger you choose when you set up the rule.

Let me know if it is not clear.

christophe demez
Contributor
October 7, 2022

So, we cannot have multiples if ! OMG !

 

It is definitively a basic of programming :-P

Suggest an answer

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

Atlassian Community Events