0

I have created a rest api to access an issue in JIRA. If I edit value of a field and save it using a button click, how to update the new value in that corresponding issue replacing the old value?

I have viewed the following links regarding editing and updating issues, but do not have idea how to access them.

  1. Editing issue
  2. Updating issue

Can anyone help me with a basic example for updating values in an issue?

altern
  • 5,829
  • 5
  • 44
  • 72
Hari Prasath
  • 111
  • 1
  • 2
  • 8
  • Your description is unclear. Are you updating the value in Jira or in a separate GUI from which you want to then update the Jira issue? You say that you are created a rest api, but I think that what you mean is a REST client that calls the Jira REST API. You need to provide more information to enable an answer. – ZeddZull Sep 19 '17 at 22:35
  • Yes, I have to edit an issue in my JIRA plugin and update them in JIRA issue using PUT method in ajax. I used this code given in this link [code1](https://jsfiddle.net/7g7jvvLx/) this works fine for GET method, but does not work for POST method. – Hari Prasath Sep 20 '17 at 09:59
  • So, now Iam using trying this below code to use GET and POST methods, as coded [here](https://jsfiddle.net/04o76tu6/) but I get the error - "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:' is therefore not allowed access." Finally, how can I edit and update the description field of an existing issue in JIRA. Or is there any way to overcome this error? – Hari Prasath Sep 20 '17 at 10:02

0 Answers0