We are using version 8.20.11
I am trying to update an issue using PUT to this url:
https://jira-server/rest/api/2/issue/KEY-1234
Data {'fields': {'summary': 'newsummary'}}
I also tried with:
Data {'fields': {'summary': [{'set': 'newsummary'}]}}
But it appears to not be working anymore. I am getting a 415 error. I have also tried updating using the numeric id of the issue and that has the same issue.
I was able to get the original endpoint to work using a pat token. Using the password with _session.put appears to no longer work.
Nice!
Thanks for sharing your final solution!
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found out how to get the update to work using a password and not just the pat token. I had to use this function: issue_create_or_update from the atlassian jira package.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Other api posts are working fine so it should not be a header issue. The endpoint appears to have changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Per https://docs.atlassian.com/software/jira/docs/api/REST/8.20.11/
I also tried:
{"update":{"summary":[{"set":"test"}]}}
I get the same 415 error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you elaborate on what error message you're getting?
Maybe try executing the call in Postman for example?
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems like a header problem, try adding these:
Content-Type: application/json
Accept: */*
Hope this helps!
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Other api PUT and POSTS are working fine so it should not be a header issue. The endpoint appears to have changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using session.put() if that helps.
from atlassian import Jira
After instantiating Jira the ._session
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
Debug mode :-).
Regards,
Jeroen
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.