Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Looping in automation until counter reaches 0

Ste404
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.
June 4, 2024

Hi all.

I have a workflow transition that transitions to itself.  There is a screen where an agent can enter in some details and then it creates an object in Assets.

I want to control how many times this happens before the loop basically stops and the issue transitions to another status.

So if there is a variable with 6, it will loop through 6 times and then break out, is there any sort of post function or something I can use on in the workflow to reduce the counter to 0 or something, yes I am confused with this one!

1 answer

0 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2024

Hi @Ste404

For this one, I would use a custom field that is hidden that counts the number of times the transition is executed.  Essentially you will subtract 1 to it in the post-function of the transition that calls itself. You will have to figure out how the initial value is populated though.  

I hope this helps.

Fabian

Ste404
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.
June 10, 2024

Can you do maths in the post function?!  will have to dig deeper in there, I thought I checked out the options for that.

Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 11, 2024

You may have to look into some workflow plugins in the marketplace (e.g. JSU, JMWE, JWT) are the easy ones to setup.

Regards,

Fabian

Ste404
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.
June 11, 2024

It is disappointing there is no Do Until type looping in automations, something that has a TONNE of use cases.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events