This page constitutes random notes from my work day as an Atlassian product consultant, put up in the vague hope they might benefit others. Expect rambling, reference to unsolved problems, and plenty of stacktraces. Check the date as any information given is likely to be stale.

As of Tempo 10.19.0 this problem is fixed.See edit inline.

Tempo has a Team custom field. Here it is rendered in the Issue Navigator:

Sadly, if you view Team in CSV you get:

And likewise the view in the Excel-like Issue Editor plugin:

I have reported this as a bug to Tempo (10.17.x) but it's basically "Won't Fix". The field's native representation (i.e. issue.getCustomFieldValue() ) is a String like "52".

Edit: This is now fixed. In Tempo 10.18 and earlier, issue.getCustomFieldValue() returned a String like "52". In Tempo 10.19+ you now get a  object back, whose toString()  returns the team name.

While that fixes the CSV export, for me it doesn't fix 'Issue Editor' values, which are still numbers. Perhaps I am just experiencing caching or some sort, or perhaps the Issue Editor plugin is doing something else weird. I'll update as I discover more.

Fortunately we have ScriptRunner. Here is source for a Script Field called Tempo Team Name which renders the actual team name:

 * 'Tempo Team Name' script Field that renders the issue's Tempo Team name, if any.
 * The plain tempo 'Team' field renders as an integer in CSV and Issue Editor views.
 * Use this field instead to render the team name.
 *, 23/Jul/20
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.fields.CustomField
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin

def customFieldManager = ComponentAccessor.customFieldManager
def teamField = customFieldManager.getCustomFieldObjects(issue).find { == "Team" }
if (!teamField) return;

def team = issue.getCustomFieldValue(teamField)
if (!team) return;

import groovy.transform.Field
import com.onresolve.scriptrunner.runner.ScriptRunnerImpl

@Field TeamManager teamManager
teamManager = ScriptRunnerImpl.getPluginComponent(TeamManager)

Here it is:

This field can now be used in CSV and Issue Editor views to see the team names.

1 Comment

  1. Anonymous

    Much appreciated. Frankly, it's a huge disappointment that Tempo dropped the ball on this and refuses to prioritize a fix (I had contacted them as well).