Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How do i set up notifications to the manager of a group when users in this group create tickets?

I am getting an error when using Script Listeners to make an api call

Richard Ross
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 9, 2021

I am getting an error when making an api call to update the priority of an issue using a script listener. Could someone tell me how I can resolve these errors?

Here is my api call:
put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body(
fields: {
priority: {id:"1"}
}
)
.asString()

Here is the error response:
body: {"errorMessages":[],"errors":{"delegate":"Field 'delegate' cannot be set. It is not on the appropriate screen, or unknown.","owner":"Field 'owner' cannot be set. It is not on the appropriate screen, or unknown.","maximumNumberOfParameters":"Field 'maximumNumberOfParameters' cannot be set. It is not on the appropriate screen, or unknown.","parameterTypes":"Field 'parameterTypes' cannot be set. It is not on the appropriate screen, or unknown.","resolveStrategy":"Field 'resolveStrategy' cannot be set. It is not on the appropriate screen, or unknown.","thisObject":"Field 'thisObject' cannot be set. It is not on the appropriate screen, or unknown.","directive":"Field 'directive' cannot be set. It is not on the appropriate screen, or unknown."}}

2 answers

0 votes
AlaA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2013

Hi Wiley,

I'm afraid that this is not possible within JIRA currently. However, I have created a new feature request for this here:

https://jira.atlassian.com/browse/JRA-34833

Please feel free to add it to your watch-list to get notified about any updates on the ticket. As well as, voting for the ticket to attract the developers attention.

I hope that was helpful.

Cheers :)

W
September 16, 2013

thanks for your help

0 votes
W
September 11, 2013

we are on version 5.2.11

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events