Welcome to the community!
Typical JSON syntax for creating or updating Jira ticket follows like:
{
"fields": {
"customfield_12345": {
"value": "Test data"
},
"description": "Testing for the REST API"
}
}
It should be PUT /rest/api/2/issue/{issueIdOrKey} call.
Note that all the fields you are setting/ sending via the JSON data should be present in the Edit screen of that issue type/ ticket.
Hope this helps.
Thanks,
Vamsi
Hello Vamsi,
thank you so much for your answer!
Does this example go into the fields section or update?
Best Regards
Nauman
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.
Hi @Nauman Qureshi,
Can you try replacing the code in 'Felder' text box with this?
{
"fields": {
"summary": "Testing for the REST API"
}
}
This will update the summary of the ticket.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Vamsi Kandala,
i have replaced the code in the box and sadly it throws the same error....
Best Regards
Nauman Qureshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have also just noticed this:
perhaps this is why it keeps failing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't mind, can you send me screenshot of the url request you are making?
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vamsi Kandala
sorry for the late reply.
I have just now noticed that the edit jira operation automatically adds the method: PUT.
And this obviously wont work because only:
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.
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.