Has anyone been able to successfully update a filter's column set using the REST API?
The documentation (https://docs.atlassian.com/software/jira/docs/api/REST/latest/#d2e888) seems to be missing the representation for a PUT request.
I tried what I thought was correct:
[ { "label": "Issue Type", "value": "issuetype" }, { "label": "Key", "value": "issuekey" }, { "label": "Summary", "value": "summary" }, { "label": "Status", "value": "status" }, { "label": "Fix Version/s", "value": "fixVersions" }, { "label": "Priority", "value": "priority" }, { "label": "Resolution", "value": "resolution" }, { "label": "Created", "value": "created" }, { "label": "Affects Version/s", "value": "versions" }, { "label": "Cohort/Subsystem", "value": "customfield_12800" } ]
but I'm getting:
"Can not deserialize instance of com.sun.jersey.api.representation.Form out of START_ARRAY token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@734be41a; line: 1, column: 1]"]}"
Community moderators have prevented the ability to post new answers.
Cracked it. The JSON file needs to be in the form
{ "columns":["issuetype","issuekey","customfield_10009","customfield_10157","summary"] }
Took a bit of messing about to work this out. The documentation is poor in this respect as it doesn't clearly illustrate how the input file should be laid out.
Tested in v6.2.7
What are you trying to do? The PUT on filter is to update the filter. Here is a sample JSON from the docs.
{ "name": "All Open Bugs", "description": "Lists all open bugs", "jql": "type = Bug and resolution is empty", "favourite": true }
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.