Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set assignee based on if condition

Anne Schenk April 7, 2020

Hi community! 

I found the exact same question I have, but the answer is from 2014. So I was wondering, is there another solution now, so I could solve this directly in JiRA without using an add on or sth.?

If not, how would you recommend to solve this in 2020?

What I want to solve:

If (assignee == Automatic)

Set assignee == reporter

If (assignee == 'prakash')

Set assignee == 'prakash'

 

Thank you for your help!

2 answers

2 accepted

1 vote
Answer accepted
Ste Wright
Community Champion
April 12, 2020

Hi @Anne Schenk

Expanding on Alexis' answer - this is how I would do it via Automation.

I created this as project rule - to access this you'll need to be a Project Admin and then:

  1. Go to Project Settings > Project Automation (left-hand menu, near bottom)
  2. Select Create Rule

I built a rule that makes the Assignee the Reporter, if Assignee is not empty. This covers both your scenarios - as setting the user automatically or manually are considered the same. The rule is:

  • Trigger: Issue Created
  • Condition: Issue Fields - Assignee is not empty
  • Action: Edit Fields - Copy Assignee from Current Issue - to change to "copy from", click the 3-dots options icon next to the drop-down

^ In my example, I decided that if Assignee was empty, I'd keep the default rule, Reporter = Creator. But you could expand this rule using an If/Else Condition to decide if Assignee is Empty, do something else (eg. make the Reporter the Assignee or make the Reporter a specific user).

You can also create these as Global Rules as a Jira/Site Admin, via Jira Settings > System > Automation Rules. Just remember that there are monthly limits on global rule executions per product - 100 for Free instances, 500 for standard and 1000 per active user on premium. 

Ste

Anne Schenk April 14, 2020

Awesome! Thank you so much for your help and describing each step @Ste Wright ! It works!

 

When issue created

   If assignee is empty 

      Then edit issue field assignee --> issue reporter

   If assignee not empty

      Then edit issue field assignee --> copy from issue

Like Ste Wright likes this
0 votes
Answer accepted
Alexis Robert
Community Champion
April 7, 2020

Hi @Anne Schenk , 

 

you now have access for free to Automation for Jira in Jira Cloud : https://www.atlassian.com/software/jira/features/automation

You can build rules very easily in the interface, and it's possible to manipulate assignee values using Smart Values : https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/

 

Let me know if this helps, 

 

--Alexis

Anne Schenk April 14, 2020

Thank you so much @Alexis Robert, I haven't heard of this Automation feature before! It works!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events