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

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

The same approvals

We have two fields in the application where need to enter the current manager ("Approval") and the new manager (custom field: "User Picker (single user)"). When first manager approves application, then at workflow goes to next status and second manager needs to approve it. In some cases, it may be the same person, so the question is, can and how can it be created so that the manager don't need to approve it twice if it is the same person? Workflow - http://prntscr.com/16azu9m

Can it be done by automation or at workflow using some conditions/post functions? How? We don't want use some extra plugins. I am new at Jira and can't find solution to do this. 

Automation:

WHEN "Issue created" -> IF (issue matches > Approvals = *User Picker (single user) ) -> THEN Issue transition ...

If that IF statement didn't show that error, that would be correct statement for this automation process or not? 

* -> User Picker (single user) is not applicable for the current project and/or issue type. 

This is the same problem, but there is no answer, so again question - Rule to autoapprove a step if approver has already... (atlassian.com)

1 answer

This is actually rather straightforward, if you use the Issue Fields condition instead of the JQL condition:

  1. When issue transitioned to second status (ie. waiting for approval)
  2. If: Approvers equals (in any order) the Manager from the current issue
  3. Then: Approve Request

As I understand You mean automation conditions, right? 

I can't get right IF syntax. What is correct syntax for comparing two values "user picker fields"? If I knew the constant/defined values, then there would be no problem, but I need to compare the values entered by the users. 

This syntax doesn't work for IF condition:

"First approval" in (currentUser()) AND "Second approval" in (currentUser())

If I use "=" instead of "AND", then I receive error message: "The value 'Second approval' does not exist for the field 'First approval'."

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

87 views 0 1
Read article

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