Best answer

Looking for a working example to update fields in Jira using rest api

  • 24 September 2021
  • 8 replies
  • 1451 views

Userlevel 1

I tried a lot of different options to update a Jira (Server) issue but it still isn't working. Can someone post an example?

Current url I am using: https://MYURL/rest/api/2/issue/MYISSUEKEY

I am looking for the right values for:

Payload type: Json? Raw? 

Data? what to put where in which format

Wrap request?

Headers? I now use Content-Type application/json

The call now if being authenticated but complains about “fields” or “update” required, but I am sending it with the request. Maybe I have to put I somewhere else…?

 

 

icon

Best answer by jayeshkumarbhatia 27 September 2021, 13:49

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

8 replies

Userlevel 7
Badge +14

Hi @MarcKraak 

Jira API has examples: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

 

Postman is also a good tool to use to test: https://www.postman.com/

Userlevel 6
Badge +6

Hi @MarcKraak ,

 

Can you share a screenshot so i can check why it is not working?

 

Userlevel 1

Hi @MarcKraak 

Jira API has examples: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

 

Postman is also a good tool to use to test: https://www.postman.com/

Thanks @jayeshkumarbhatia . However, my example works in Postman, not in Zapier, see screenshot

Userlevel 1

Hi @MarcKraak ,

 

Can you share a screenshot so i can check why it is not working?

 

 

Userlevel 1

Hi @MarcKraak ,

 

Can you share a screenshot so i can check why it is not working?

 

 

And the error message

Userlevel 6
Badge +6

Hi @MarcKraak , Can you try be making following changes?

 

  1. Use Webhook by Zapier action → Custom Request
  2. Copy and paste all the details like endpoint url, headers, method,etc in the new action. Also add the data, in Data section of new action. 

Try and let me know if this works. 

Userlevel 1

Hi @jayeshkumarbhatia, this works! ;)

Thanks!

Userlevel 6
Badge +6

Hi @jayeshkumarbhatia, this works! ;)

Thanks!

Thanks for the confirmation.