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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,320
Community Members
 
Community Events
176
Community Groups

JMWE Groovy Script: Accepted only if

Edited

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

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")

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.

All great, I did it. Thanks for your help

0 votes
Hana Kučerová Community Leader Jul 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 Jul 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

Atlassian Community Events