Child pages
  • com.pyxis.greenhopper.jira.fields.Assignee cannot be cast to com.pyxis.greenhopper.jira.fields.RankingField
Skip to end of metadata
Go to start of metadata

Symptoms

When trying to edit the 'Ranking' field, you get the following stacktrace:

MethodInvocationException occurred getting message body from Velocity: java.lang.ClassCastException: com.pyxis.greenhopper.jira.fields.Assignee cannot be cast to com.pyxis.greenhopper.jira.fields.RankingField
java.lang.ClassCastException: com.pyxis.greenhopper.jira.fields.Assignee cannot be cast to com.pyxis.greenhopper.jira.fields.RankingField
	at com.pyxis.greenhopper.jira.actions.RankingAction.getSelectedRankField(RankingAction.java:413)
	at com.pyxis.greenhopper.jira.actions.RankingAction.getRankingBoard(RankingAction.java:265)
	at sun.reflect.GeneratedMethodAccessor2452.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
...
(more)

Cause

You had set the field 'Assignee' as the field for sorting. When you are sorting the issues by 'Assignee', you will have the problem in editing the ranking field. This has been raised as a bug: GHS-2024.

Resolution

  • You might need to set the 'Ranking' field as the field used to sort and edit the ranking.
  • Upgrade to the JIRA Agile version 4.3.1.