JMWE Groovy Script: Accepted only if

Jurica Petricevic
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.
July 27, 2021

Hello,

i have one problem. In the desire to shorten the workflow because the cradle is too long and complex I came up with one idea that I need help with.

I will add an image to the attachment, but Accepted as a status should appear only when it has already been in the Prepared status twice, or only if it has previously used the Control transition and not before.

 

Image1.JPG

thanks in advance.

Best regards

Jurica Petricevic

2 answers

1 accepted

1 vote
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2021

Hi @Jurica Petricevic 

when you say "it has already been in the Prepared status twice", you mean it was transitioned to the Prepared status once (from Reviewed), then it probably moved along the workflow to Accepted and beyond, and eventually returned to Reviewed and then Prepared? Or said differently, it was moved twice from Reviewed to Prepared? 

As for enabling the transition when the Kontrolle transition has been run at least once, you'll need to "memorize" that Kontrollle transition execution somehow - either in a custom field or in an Issue Entity Property (using the "Set issue, user or project Entity Property value (JMWE app)" post-function) - and check that "memory" in a Scripted (Groovy) Condition. If you use an issue entity property, you can check it with:

!!issue.getEntityProperty("property-name")
Jurica Petricevic
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.
July 30, 2021

when i say  "it has already been in the Prepared status twice" then i think the "control" transition is already done.

This is only possible if this status has already been confirmed two times, minimal.

Can you give me more details here on how exactly to configure this. I tried alone but unsuccessfully.

Jurica Petricevic
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.
July 30, 2021

All great, I did it. Thanks for your help

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2021

Hi @Jurica Petricevic ,

I would strongly recommend no to do it and just add another status between Prepared and Accepted. I understand that you want to reduce the number of statuses, but from my opinion this would complicate the solution unnecessarily.

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2021

I'm sorry, I don't mean no harm, I just doesn't seem right for me...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events