I am trying to create a JIRA issue using rest api. I wonder how the fields are provided. I see that there are different ways. For example:
1. For summary field, it is just key an value.
2. For description, it is json object with key "set".
Is there any generic way to find how the fields needs the value to be set?
Covered on the documentation: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
Editing an issue by using the SET, ADD, and REMOVE operations. Not all fields support all operations, but as a general rule, single value fields support SET, whereas multi-value fields support SET, ADD, and REMOVE, where SET replaces the field contents while ADD and REMOVE add or remove one or more values from the the current list of values.
The above link you have provided is for the custom fields. How about the Jira Core std. Fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are NUMEROUS examples of standard fields being updated on that page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
You can try this example
https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/jira-create-issue.py
Cheers,
Gonchik Tsymzhitov
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.