Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Automation: How to assign an issue to the user from a custom field

When a rule is executed, we need to assign the issue to the user whose name is in a custom field.

Is there a way to do this? We don't see the custom field in any of the assignment options, including 'Another field value', which shows only standard fields like 'Issue creator' and 'Issue reporter'.

The custom field is defined as a user field, not just text.

2 answers

1 accepted

1 vote
Answer accepted
John Funk Community Leader Jun 17, 2020

His Chris,

So the custom field already exists on the screen and has a value in it?

It should show up when you do an Edit Issue > Set assignee > copy from other value

Can you share your rule that you have along with the details of the assignee value?

Hi John, I'm not sure what screen you mean. It's on our various issue screens, but I'm creating an automation rule. The field does not appear anywhere I can find in the screen used to add an action.

I also don't see a "copy from other value" option in Edit Issue>Set assignee. This is what I see:

jira.png

The custom user field is named 'Issue/project lead', and it's not there.

The rule is: When issue transitioned to Lead Review/If Goal Type is not empty/And Goal Status is 'Ready for Dev'/Then assign to user.

The user I want to assign it to is in the Issue/Project Lead field.

John Funk Community Leader Jun 17, 2020

Instead of using the Assign Issue action, maybe try using Edit Issue instead. Then select Assignee field. 

Then click the 3 dots and select Copy from Current Issue. 

Then click on the words Current Issue which will popup the ability to select another field to copy into the Assignee. 

Wow, that is obscure. It's not at all obvious that "Current issue" is clickable and leads to the full list of fields.

But it works now, so thanks a lot!

John Funk Community Leader Jun 17, 2020

Yes, I stumbled onto it myself many weeks ago.  :-)

I am glad it is working for you now!

Hi, I am trying to do the same, but when I try to create the Automation, the only Action I can find is "Edit issue / Field", and I have no options in "Replace with this value" if not the possibility of inserting a fixed user there, as shown in screen. Why can it be??

image.png

John Funk Community Leader Sep 28, 2020

Hi Alex - Welcome to the Atlassian Community!

As a side note, you should always create new questions and not add on to previous conversions. Otherwise, no one else will see the question in order to help.

That being said, it looks like you are using built in project automation or forms automation and not the actual Automation for Jira tool. 

Here is some additional guidance to get you started:

There are two types of automation:

  • Global: In the Free version, you get 100 executions per product, per month
  • Project: In all versions, you get unlimited executions per month

Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation

You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).

For more on using Automation For Jira see these help pages.

Thank you very much John, but I can't find the "Automation Rules" in "Settings > System".

Also, I have seen in the guide you linked that the screen should be different in the project automations anyway (https://support.atlassian.com/jira-software-cloud/docs/create-and-edit-rules/).

I really don't understand if it is a version issue or what...

John Funk Community Leader Mar 25, 2021

Are you in Cloud or Server?

Also, you have to be a Jira Administrator to see Settings > System

HI @John Funk

I ran into the same issue and tried to replicate this:

Instead of using the Assign Issue action, maybe try using Edit Issue instead. Then select Assignee field. 

Then click the 3 dots and select Copy from Current Issue. 

Then click on the words Current Issue which will popup the ability to select another field to copy into the Assignee. 

But when I click on Current issue, I don't see the full list of field, only Assignee, Creator, and Requester, even though there is another custom field with people select which I need to be using. 

Do you know what could be the problem? 

 

Thank you! 

John Funk Community Leader Mar 25, 2021

Hi Elina - Leave it with Set value instead of Copy from Current Issue

Then use {{issue.Custom Field}} subbing out Custom Field for the exact name of your user picker field. 

Thank you! 

This configuration worked after all: 

{
"fields": {
"assignee": { "id": "{{customfield_10003.accountId}}" }
}
}

 

Where customfield_10003 is the system name of the field I was fetching the user from. 

Like John Funk likes this
John Funk Community Leader Mar 29, 2021

Great! Glad you got it to work!!

Like Elina Minnie likes this

Hi,

For some reason this didn't work for me.

My custom field is "designer". When I run the automation rule, I get an error "(Account ID does not exist. (assignee))"

What am I doing wrong?

Capture.PNG

Hi @Mahima Srivastav ! 

You need to be using the id of this custom field, not its name, so it would look like 

 

{
"fields": {
"assignee": { "id": "{{customfield_10003.accountId}}" }
}
}

 

The id is something like customfield_10003 

You can extract it from the URL, like described here https://confluence.atlassian.com/jirakb/how-to-find-id-for-custom-field-s-744522503.html

Like John Funk likes this

Got it. Thanks! Also, can you tell me about the accountID? I tried to use my accountID but it still gave me the same error.

(Sorry, I'm new to JIRA so please excuse my ignorance)

@Mahima Srivastav  leave it as 'accountId'. It should fetch users from the field. 

Tried it. Same error. :(

I have no idea why this error exists. I checked the permissions as well, but that didn't work.

My process steps are:

  1. Create Epic named "ORR" with a custom field "designer" (user picker)
  2. Automate creation of issue linked to this Epic
  3. Edit created issue
  4. Copy "Designer" field from Epic to "Assignee"

Will the code be different if I want to copy data from a parent issue?

Capture1.PNGCapture2.PNG

John Funk Community Leader Apr 01, 2021

Maybe you need to take off the Assignee field update in the top part and just let the JSON part have the code. 

Hi John, I did that. The error persists. :(

 

Error: (Account ID does not exist. (assignee))

John Funk Community Leader Apr 05, 2021

It sounds like the ID you are using is not an active user. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

109 views 2 9
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