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,465,609
Community Members
 
Community Events
176
Community Groups

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

Atlassian Community Events