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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

scriptrunner condition for a specific custom field value

Hello,

 

can you please give me ideas about creating a condition in a spoecific transition.

This condition is about forcing only one user to execute a transition if a custum field have a specific value .

 

Like if the value of the custum field is A so the user B will be the only one allowed to execute the transition.

 

Thanks in adavance.

 

 

3 answers

2 accepted

0 votes
Answer accepted

HI sreenivasaraju P,

 

Yep i found how to set a value for a custum field but i dont know how to add the part of the user to execute the transition.

Ben Poulson Community Leader Feb 19, 2019

You can add a validator to the workflow that checks the condition and fails the transition otherwise. You will have to compensate for allowing the transition if the value of the field is not the specific value, though. Pseudocode for how I believe the logic would work:

 

if custom field = value
if user = alloweduser
return true
else
return false
else
return true

Thanks sreenivasaraju P,

 

i forgot to ag this post with answered question.

Thanks sreenivasaraju P,

 

i forgot to tag this post with answered question.

I am trying to do something similar with a Custom Field I named "Region Created" There are 3 choices, No, Empty, Yes

 

I want the transition to be hidden if the answer is Yes

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you