Child pages
  • Rank operations in JIRA Agile via REST fails with 500 Internal Server Error
Skip to end of metadata
Go to start of metadata

Unable to render {include} The included page could not be found.

Symptoms

The following appears in the atlassian-jira.log:

Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
at com.atlassian.jira.issue.customfields.impl.rest.TextCustomFieldOperationsHandler.getInitialValue(TextCustomFieldOperationsHandler.java:46)

 

Basically the API is /api/rank/before (or /api/rank/after) you can access it for example: http://JIRA_Host/api/rank/before

The parameters for /before are:

  • issueIds - array of issue ids
  • issueKeys - array of issue keys,
  • customFieldId (long),
  • rankbeforeId or rankBeforeKey

 

For /after its rankAfterId/rankAfterKey but they are otherwise the same. You can trigger REST calls using curl, or a Google REST console, or a native plugin, such as the atlassian developer toolbox. Please learn more from our API's by using our REST API browser from the atlassian developer toolbox. Once that's installed log into JIRA > Administration > Scroll down > REST API Browser. There are more general examples using JIRA here and further details and examples here.

Workaround

Refer to this https://answers.atlassian.com/questions/45323/rest-api-for-ranking

Help us improve!

 

There are more general examples using JIRA here and further details and examples here.

  • No labels