I want to be able to set the assignee for issues when I create them via the API.
However, whatever info I send results in the same error: Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown
I do know there's an API endpoint for assigning to known tickets, however, I need to perform this action on issue creation, and that's not working.
Hi @Joe Osborne
Did you take a look at these examples? https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
If assignee is a mandatory field, then you have to include it in your API.
Let me know if the above helps.
Yes, you might work with python, but "screens" is a Jira essential feature.
When you create an issue/ticket on Jira, a popup screen appears, which prompt you to complete certain fields (mandatory and optional). Screens can also be used on workflow transitions. Screens are also used when a user creates, view or edit an issue. So even if you don't see any screen, they do exist.
With that said, you have to check if the assignee field is present on the creation screen. If not, then you have to add it. If you are not a jira admin, then you have to inform a jira admin to add this field to the creation screen of the project of the issue type you are trying to create.
Sorry to tell you that, but screens, field, schemes etc are Jira basic terminology and you should start to get accustom with them (even if you use REST API).
Ok then. Can you take a look at this post https://community.atlassian.com/t5/Jira-questions/Jira-REST-API-getting-error-unable-to-create-an-issue-using/qaq-p/1399628
It seems that another was facing the same issue with you. It could be that the main problem could be that are using fields' names instead of identifiers. Give it a try and let me know if that worked.
I can successfully assign an assignee using the assignee endpoint:
However, when I include the same request on a ticket creation request, I get the error mentioned above: Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown
I am asking if you can set the Assignee field during issue creation when you use the web UI and the same identity you use for the API.
Is the destination project for the new issue a Team Managed project or a Company Managed project?
Try logging into the Jira web application with the identity you use for your API call. Try using the UI to create an issue in the desired project. Is the Assignee field available there?
If the Assignee field is not available in the Create Issue UI screen for your project and the issue type you are trying to create, then you will not be able to set the value using the Create Issue API.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
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