Only Selected User (user picker) should only Check Box, only then a Transition can go forward!

Hello

Here I have two custom fields Approved By (User Picker) and Approval (Check Box) options Yes or No

A Transition should go forward only if the person in Approved By selects check box 

any idea how to achieve this validation!

Here issue has to move from "In Progress" to "Done" where the current user cannot move it to Done state unless the CheckBox is selected by User in Approved By field

Thanks

Tej.

1 answer

1 accepted

1 vote
Thomas Schlegel Community Champion Feb 20, 2017

Hi Tej,

I would make two workflow transitions out of this:

  • The person in "Approved By" clicks a transition called "Approved" 
    As precondition, you can check, if the user is the one from the field "Approved By"
  • The next transition has a precondition that checks, if the custom field "Approval" is set to yes.

 

 

Thank you! Thomas for the quick response, but is there any way we can do in only ONE transition? 

Thomas Schlegel Community Champion Feb 20, 2017

Maybe this works (I didn't test it, but it should work)

  • First: precondition: User is in field "Approved By"
  • Second: Validator: Field Approved is set to Yes

With this approach, the user in "Approved By" is the only one who is able to click on the transition. 

You should add a screen to this transition, where the user can set "Approved" to yes.

Then, after clicking the button in the screen, the field "Approved" is checked.

 

It doesn't work Thomas! 

If we use condition... The user in the field Approved By only can do transition but I want current user do transition unless it satisfy the validation that checkbox should be checked by the only user in "Approved By"

Here issue has to move from "In Progress" to "Done" where the current user cannot move it to Done state unless the CheckBox is selected by User in Approved By field

Thomas Schlegel Community Champion Feb 20, 2017

that's what I meant with "the user in "Approved By" is the only one who is able to click on the transition"

Make two transitions as I suggested and everything's fine wink

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you