Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't update summary and description anymore of a Jira issue.

Mark Matchynski February 17, 2023

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.

4 answers

1 accepted

1 vote
Answer accepted
Mark Matchynski February 17, 2023

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.

Jeroen Poismans
Community Champion
February 18, 2023

Nice!

Thanks for sharing your final solution!

Regards,

Jeroen

Mark Matchynski February 21, 2023

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.

0 votes
Mark Matchynski February 17, 2023

Other api posts are working fine so it should not be a header issue. The endpoint appears to have changed.

0 votes
Mark Matchynski February 17, 2023

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.

0 votes
Jeroen Poismans
Community Champion
February 17, 2023

Hi,

Can you elaborate on what error message you're getting?

Maybe try executing the call in Postman for example?

 

Regards,

Jeroen

Jeroen Poismans
Community Champion
February 17, 2023

@Mark Matchynski 

Seems like a header problem, try adding these:

Content-Type: application/json
Accept: */*

Hope this helps!

Jeroen

Mark Matchynski February 17, 2023

Other api PUT and POSTS are working fine so it should not be a header issue. The endpoint appears to have changed.

Mark Matchynski February 17, 2023

I am using session.put() if that helps.

from atlassian import Jira

After instantiating Jira the ._session

Jeroen Poismans
Community Champion
February 18, 2023

Hi Mark,

Debug mode :-).

  • Have you tried the call from Postman instead of your code?
  • What environment, script language ... are you using?

 

Regards,

Jeroen

Suggest an answer

Log in or Sign up to answer