Hi guys,
I'm new to JIRA and I'm working on a project where an initial Task creation takes place and creates multiple issues automatically (I'm using Post Fucntions to accomplish the task).
Everything works great, except when I try to set an "Assignee" field value. I can't get the correct syntax and get an error which reads: incorrect request: {"assignee":"User '{\"name\":\"shachaf.gidron\"}' does not exist."}.
See below screenshot for my post function configuration:
Thanks in advance!
I've solved this problem by creating a separate workflow for that issue type and added an "Update issue field" post function.
Now the issue is automatically assigned to a specific user.
Thank you for sharing this workaround with the community, Shachar.
In fact, I was testing if the nunjucks notation does not accept special characters like dots, however, I was not being able to reproduce your issue.
Anyway, Thank you for your feedback.
Have a nice day! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shachar,
Analyzing the screenshot sent, I believe you are using a post function from the JIRA MISC Workflow Extensions plugin to create the issues, is that correct?
Also, can you please let us know what value you are trying to add to the assignee field?
If you are trying to assign it to a specific user, you just need to type the username in the line and it will properly assign the issue to the correct user.
For more information about it, check the expected Value session in the documentation below:
- Nunjucks Template Editor and tester
Let me know if it helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Petterson,
You are correct. I'm using a JMWE plugin to accomplish that.
I already checked for expected value in here.
Its says field "Assignee" should expect "carter", but our users have last names, such as "Shachaf.gidron" has.
I tried these formats, with no luck:
"employee.name", "employee name" , employee.name (without quotes), employee name (again, without quotes). Also tried the JSON ones btw.
If it expects only a first name then it can run into a problem since there may be people who share the same first name, but not their last name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shachar,
Actually, user picker fields are not configured to render first or last names, but the username configured for the user.
That been said, you can check the username field for the user you want to add by navigating to its profile or filling the assignee of any issue by using the UI.
Let me know if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't wish to use the UI at all, it needs to be automated.
As for the username field, I cannot find one. I see a public name in my profile and its the same as my account name. I even tried editing it to shorten it to shachar but it didn't work.
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.