Story points by label, excluding/including other labels

I have two labels : BE, FE. Some tickets have both and some have one or the other. I need to slice and dice those story points in several ways.

The measure Story Points Due will give me a total of story points for all stories that have the BE label (including those that are also labeled FE) and vice versa.

I also need :

  • a total of story points due for stories that have the BE label that DO NOT have the FE label.
  • a total of story points due for only stories that have both FE and BE labels.

I cannot, for the life of me figure it out. What’s the best way to go about this?

I kind of got at this. Enough that it’s useful anyways. I used a snip of javascript I found elsewhere, modified it and put it in advanced settings

name = "BE/FE combo"
data_type = "string"
dimension = true
javascript_code = '''

var label1 = "BE";
var label2 = "FE";
var label = issue.fields.labels;

  if (label.indexOf(label1) != -1 && 
     label.indexOf(label2) != -1)
      issue.fields.customfield_sc = "BE/FE Combo";

This gave me a dimension I can use. If used as a row under a label row, each label can essentially be expanded to show a total of those that are an are not combo stories, which gives us the data we need.

1 Like