Trying to open a bug with all sorts of custom and non-custom fields. Everything works as expected except of one custom field, of type 'Labels'.
The following is the .json file I post, where the question mark is the problematic part (as far as I can tell):
Turns out it should be posted as follows:
"versions":[
{
"name":"version"
}
],
Hi Yahm - Welcome to the Atlassian Community!
I don't know much about JSON, but why are you using an API to create the issue and not using something simple like Automation for Jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Thanks for the reply!
I'm using the API because it's most convenient for me. I use it from a Jenkins pipeline.
I use JSON simply to pass the data to Jira, as mentioned here https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#versionpicker.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, you might do what is working and then add an automation rule just to update the labels type field after the issue is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The thing is that this field is required when opening an issue.
Isn't there any documentation to using a custom field with type 'Labels'?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't speak to that. I would either use a different field when creating or update it afterward. Either way, I would make it so that field is not required to create an issue.
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.