To learn more about Tempo products, please visit our Help Center. For support, see our Support Portal.

Changes made to the Jira SPI in Tempo Timesheets version 10.19.0, Tempo Planner 7.19.0 and Tempo Budgets 13.19.0



For the above versions of the Tempo add-ons we implemented a change on how the Tempo Team custom field is returned and populated from the Jira SPI. This change affects possible integrations and apps that work with Tempo which are relying on the Jira SPI instead of using the Jira REST API.

The TeamCustomField object now returns and is populated with a team object.

The Custom Field SPI is documented here:
https://docs.atlassian.com/software/jira/docs/api/8.0.0/com/atlassian/jira/issue/fields/CustomField.html

To read the team/teamId from an issue:

MutableIssue issue = issueManager.getIssueObject("ABC-123");

CustomField teamCustomField = customFieldManager.getCustomFieldObject("Team");

Team team = (Team) issue.getCustomFieldValue(teamCustomField);

int teamI = team.getId();

If you are using the Jira SPI to write or update  the value of the Tempo Team field you should amend your code accordingly:



To update the team on an issue:

MutableIssue issue = issueManager.getIssueObject("ABC-123");

CustomField teamCustomField = customFieldManager.getCustomFieldObject("Team");

Team team = teamService.getTeamByName("My Best Team").get();

issue.setCustomFieldValue(teamCustomField, team);



If you encounter issues and require more information, please contact our Support team