Hi,
so as I just discovered, opening the create screen in the UI and toggling the "Use request type fields" on/off and then closing the screen again without creating an issue actually dictates which fields are required for rest api calls to endpoint "rest/api/2/issue".
I couldn't find anything about that in the documentation and I couldn't find a way to actually add a json key and value to the REST calls to make sure the backend fields are used, and not the customer portal fields (which have different required fields in out setup) .
I had to actually flip this switch in the UI, which I discovered on a wild hunch as I was desperately trying to figure out why I get blocked by customer portal field requirements.
My expectation was that "rest/api/2/issue" always uses the backend fields as it is not a JSM endpoint and if any endpoint was going to be using the customer portal fields instead then it would have been "rest/servicedeskapi/request", but this is not the case, it seems.
I have not tested how "rest/servicedeskapi/request" behaves yet. So maybe somebody could share their knowledge here if it simulates the customer or agent creation process.
So this post is about raising awareness and asking if there is a way to set this within one of the issue creation REST calls or maybe if there is a different call entirely to set this flag.
Today this came up again as one of our devs couldn't understand why these fields were required all of a sudden. Luckily I already made this discovery when I nearly lost my mind trying to figure this out. :)
Tbh I expected somebody else to at least comment and confirm my find here as this is a pretty silly and to my knowledge undocumented problem in Jira (especially because using automation users for service desks is not an unusual use case).
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.