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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

648 views 1 18
Join discussion

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