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.
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk thanks for your comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Will the code be different if I want to copy data from a parent issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John, I did that. The error persists. :(
Error: (Account ID does not exist. (assignee))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Valid value error I get. I want the automation to get the value from the field called "Requested Assignee" and change the "Assignee" value to that. I get error saying to enter the valid value.. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.