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,461,874
Community Members
 
Community Events
176
Community Groups

Allowing transition based on value and only to certain group

Hi,

In a workflow, I want to do the following:

  • determine value of custom field (responsible department).
    • If value = DevOps: a transition needs to be restricted to a certain group.
    • If value = Projects: anyone can make the transition that has the correct role.

 

Its really simply to either place a condition on the value of a custom field, OR to put a restriction on the group that is allowed to transition, but combining them is giving me a hard time...

Anyone has an idea?

I've tried the simple ScriptRunner snippets, but I don't know how to control the transition in Groovy. The ScriptRunner documentation is not making me all the wiser on this point either :(

1 answer

1 accepted

4 votes
Answer accepted
Florian Bonniec Community Leader Dec 11, 2022

Hi @Sander Spoelstra 

You can create nested condition to build what you are looking for a bit like explain in this community question.

https://community.atlassian.com/t5/Jira-questions/Adding-multiple-conditions-to-Issue-transition-in-a-JIRA/qaq-p/847576

So you can add a block require all condition to be met for value = DevOps and Group = ...

Then add a new condition but only selecting "Any of the condition" with value = project.

 

Regards 

@Florian Bonniec wow... I never new that it was a dropdown (completely missed the arrow down icon)!

You know how much I've scripted through the years that could have been solved with nesting?! 

It works like a charm, thank you so much for such a simple solution :)

Suggest an answer

Log in or Sign up to answer