When I try to update a field via the issueInput binding what does not exist on any of my screens (by design), i get the following error. How do i overrideScreenSecurity so that "hidden" fields can be set?
I'm using ScriptRunner for JIRA Cloud.
Thanks!
2016-11-21 19:09:28,388 INFO - Serializing object into 'interface java.util.Map'
2016-11-21 19:09:28,390 INFO - PUT /rest/api/2/issue/80258 asObject Request Duration: 326ms
2016-11-21 19:09:28,403 ERROR - assert resp.status == 204
       |    |      |
       |    400    false
       status: 400 -` Bad Request
       body: [errorMessages:[], errors:[customfield_15500:Field 'customfield_15500' cannot be set. It is not on the appropriate screen, or unknown.]]
Hi Randy,
This is a deficiency with the Modify Issue post function we hope to have addressed shortly. To work around it use the Run Script function and use the overrideScreenSecurity query param. For example:
def resp = Unirest.put("/rest/api/2/issue/${issue.key}")
        .queryString("overrideScreenSecurity", true)
        .header("Content-Type", "application/json")
        .body(body)Regards,
Jon
Thanks Jon!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the override setting but still getting the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Asha Kumaripost your script
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.