Actions for Jira for Workflows

Latest Dynatrace

The following workflow actions are available for Jira for Workflows Jira for Workflows.

Change assignee

Change the assignee of a Jira Issue.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
Issue key
The exact issue key, for example, XYZ-1234. You can also use workflow expressions as input.
required
Assignee
The user name of the assignee.
required

Comment on issue

Comment on a Jira issue.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
Issue key
The exact issue key, for example, XYZ-1234. You can also use workflow expressions as input.
required
Enter a comment
The comment. Format your message using Jira Text Formatting Notation. You can also use workflow expressions as input.
required

Output

The Comment on issue action provides the following result:

Property

Description

id

The numeric ID of the comment, for example, 123456.

This result can be used as inputs for other Workflow actions via workflow expressions.

Create issue

Create a new Jira issue with various fields.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
Project
The name of the Jira project.
required
Issue type
The issue type.
required
Priority
The set priority.
optional
Assignee
The name of the assignee.
optional
Reporter
The name of the reporter.
optional
Labels
Jira labels.
optional
Components
Jira components.
optional
Summary
The summary text. It will be truncated to 255 characters.
required
Description
The Jira issue description.
optional
Fields
Jira fields.
optional

Output

The Create Issue action provides the following result:

Property

Description

id

The numeric ID of the newly created Jira issue, for example, 1234567.

key

The Jira issue key of the newly created Jira issue, for example, XYZ-1234.

url

A URL that links to the newly created Jira issue, for example, https://<your-jira-instance>.atlassian.net/browse/XYZ-1234.

This result can be used as inputs for other workflow actions via workflow expressions.

Execute JQL queries to fetch issues from Jira.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
JQL
A valid JQL for search, for example, PROJECT = CA AND assignee = null.
required
Fields
A comma-separated list of fields returned from the search, for example, key,summary,created.12
optional
Expand
A comma-separated list of entities that you want to be expanded, for example, names, renderedFields.
optional
Maximum number of results
The maximum number of results the search returns, for example, 10.3
optional
1

By default, only navigable (*navigable) fields are returned in this search resource. The default are all fields (*all).

2

Examples for filters: Examples for filters: *all - include all fields; *navigable - include just navigable fields; summary,comment - include just the summary and comments; -description - include navigable fields except the description (the default is *navigable for search); *all,-comment - include everything except comments

3

Number of issues returned by one query will be truncated to 1000. Be aware that action might fail if result is too large.

The syntax for custom field values depends on the custom field type. For more information, see Jira documentation for Setting custom field data for other field types.

Examples:

Key

Value

FreeTextField

"customfield_10004": "Free text goes here. Type away!"

GroupPicker

"customfield_10005": { "name": "jira-developers" }

MultiSelect

"customfield_10008": [ {"value": "red" }, {"value": "blue" }, {"value": "green" }]

NumberField

"customfield_10010": 42.07

Output

  • The Detail tab shows the State of the operation:

    • Success if the JQL search operation passed
    • Failed (with more information) if the search failed
  • The Result tab lists all the records from the search (if the search was successful).

Link two Jira issues.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
Inward issue
The key of a linked issue.
required
Link type
The type of link between the two issues.
required
Outward issue
The key of a linked issue.
required
Comment
Comment on the inward linked issue.
optional

Transition issue

Transition the Jira issue's state.

Inputs

Field
Description
Required
Connection
The preconfigured connection to the Jira instance.
required
Issue key
The exact issue key, for example, XYZ-1234.
required
Transition status
The status that the issue should have after this transition. You can use workflow expressions as input here.
required
Enter a comment
The text that you want to add to the issue during the transition operation. You can also use workflow expressions as input.
optional
Fields
Custom field.
optional

The syntax for custom field values depends on the custom field type. For more information, see Jira documentation for Setting custom field data for other field types.

Examples:

Key

Value

FreeTextField

"customfield_10004": "Free text goes here. Type away!"

GroupPicker

"customfield_10005": { "name": "jira-developers" }

MultiSelect

"customfield_10008": [ {"value": "red" }, {"value": "blue" }, {"value": "green" }]

NumberField

"customfield_10010": 42.07

Output

The Transition issue action currently provides no results, but the Input tab shows all IDs associated with the transition and the logs provide some information.

The Detail tab shows the State of the operation:

  • Success if the transition operation passed
  • Failed (with more information) if the transition failed