Discover

Apps

Products

Platforms

Types

Status

Features

Tags

Search Results

303 Results filtered by

Change the Value of a Custom field in a Post Function

Overview

This script sets the value of issue fields during a post function, in a workflow transition.

The syntax for updating/setting fields is exactly the same as used when creating, updating or transitioning an issue - see this example, except that you use issue.set { ... } rather than issue.update { ... }.

.set, which is available on com.atlassian.jira.issue.MutableIssue, updates the issue fields in memory only, and does not persist them to the database. This works in a script post-function providing it is ordered before the system post-functions for storing and reindexing an issue.

Example

Automatically set fields on issue ...

Create a Tempo Account

Overview

Create a Tempo account (a way to track time across multiple teams and projects) using the Tempo API.

The current user must have permission to create a Tempo account.

Read more about permissions in Tempo in this article.

Example

I want to automate the creation of Tempo accounts to save time manually creating them, and make issue progress easy to track. I could, for instance, use this script to trigger a Tempo account creation each time an Epic is created, allowing me to track the time spent on issue in that Epic.

Good to Know

  • This script requires Tempo Timesheets, Tempo Planner, or ...