Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple fields on the X or Y axis of the Two dimensional filter statistics gadget

Deepa Narasimhan
April 20, 2022

Is it possible to have more than one field on the X or Y axis of the Two dimensional filter statistics gadget for the dashboard (without having to create an additional custom field that has the concatenated value of the two fields)? 

Thank you!

 

1 answer

1 accepted

0 votes
Answer accepted
adammarkham
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.
April 27, 2017

The casing in for example VersionUnArchiveEvent is wrong it should be VersionUnarchiveEvent. I've fixed your example below:

import com.atlassian.jira.event.project.VersionReleaseEvent
import com.atlassian.jira.event.project.VersionUnreleaseEvent
import com.atlassian.jira.event.project.VersionArchiveEvent
import com.atlassian.jira.event.project.VersionUnarchiveEvent

if (event instanceof VersionArchiveEvent) {
  def event = event as VersionArchiveEvent
} else if (event instanceof VersionUnarchiveEvent) { 
   def event = event as VersionUnarchiveEvent
} else if (event instanceof VersionReleaseEvent) {
    def event = event as VersionReleaseEvent
} else if (event instanceof VersionUnreleaseEvent) {
    def event = event as VersionUnreleaseEvent
}

 

Suggest an answer

Log in or Sign up to answer