Hi,
I am trying to create a Rest endpoint using Groovy Scriptrunner in Jira and need help.
my requirement:
EX: jql: project = "XYZ"
field value : version=2.5
when i run my Endpoint with the above inputs , all the issues which return from that project=XYZ should get version field updated to 2.5
endpoint: PUT/rest/api/update
Problem;
when i run my end point and see in my logs i showing that no issues found in project.
below is my script:
Please clarify: What do you want to perform Update using the REST Endpoint?
If you intend to update only values in fields, you could use the ScriptRunner Console to do so.
I am looking forward to your feedback and clarification.
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ram Kumar Aravindakshan _Adaptavist_
My concern is to create a rest endpoint for my requirement where that end point get all the issues from the particular project and update a value for that all issues in bulk.
Thank you and Kind regards,
Preetham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What values do you intend to update via REST? Is it custom field values or system field values?
Instead of doing this via REST, it would be simpler to use the ScriptRunner HAPI feature on the ScriptRunner console.
Please provide the clarification requested above so I can provide a sample script.
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ram Kumar Aravindakshan _Adaptavist_
As if know I am trying to update the values for custom field values only. But I have to do this via through REST END only..
Based on REST can you please provide me similar script which will bulk update the issues value in particular project.
ScriptRunner HAPI can be used only by Jira admins but this bulk update as to be done by third party for that reason I have to create REST EndPoint.
Thank you and Kind regards,
Preetham
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.