Configuring trigger actions
Configure one or more actions under Trigger action by clicking Add action:
- Change issue status
- Update fields
- Add comment
- Create checklist
- Calculate value
- Move issue
- Create issue
- HTTP request
Changing issue status
Set a new issue status. The available statuses depend on the workflow settings.
If you set up a transition screen for a status update, make sure it does not have required fields. Otherwise, you will not be able to change the status using a trigger.
Updating fields
Set up new values for one or more fields.
-
Click Select fields and specify the field.
-
Select an action:
Action Description Set the value Assign the value to a field. Clear the field Delete a field value. Add to list Add another value for the field (for multiple-item fields). Remove from list Remove one value from the field (for multiple-item fields). -
Specify the new value for the field.
Add comment
Write the comment text that will be added to an issue.
You can insert values of issue fields into the comment text. To do this, click Add variable and select one or more values. The Comment field will show a sequence like not_var{{issue.<field_ID>}}
.
Create checklist
Create a checklist that will be added to an issue.
Note
The action won't work if the issue already contains a checklist.
To add a checklist item:
-
Click Add item.
-
Enter a description for the item. If necessary, specify the assignee and deadline.
-
Click Save.
Calculate value
You can set up a special field whose values are calculated automatically based on values entered in other fields. For example, you can automatically calculate the value of a certain metric.
To calculate the field value automatically:
-
Add an action for the Calculate value trigger.
-
Set a formula for calculating the value:
- Click Add variable and add a field formula with numeric values. The formula will include a sequence like
not_var{{issue.<field_key>}}
.
If the desired field is missing in Tracker, you can create one. - You can use mathematical symbols for addition
+
, subtraction-
, multiplication*
, and division/
. - To set the priority of operations, use parentheses.
- Click Add variable and add a field formula with numeric values. The formula will include a sequence like
-
Click Choose the field and set the field you want to put the calculated value into.
Note
If the field supports only integer values, the value will be rounded.
-
Set a condition that will trigger the calculation of the field value in the Trigger conditions section. We recommend choosing the Formula fields changed event. You can also set any conditions you need for your issue workflow.
Move issue
-
Add the Move issue trigger action.
-
Select the queue to move your issue to.
The issue will be moved only if the user who ran the trigger has rights for creating issues in the selected queue.
Create an issue
You can set up a trigger that will automatically create an issue when certain conditions are met. For example, you can create a trigger that creates an issue for testing when a programmer implements a new feature and updates the issue status to Resolved.
To set up creation of an issue:
-
Add the Create issue trigger action.
-
Click Fill in fields.
-
In the Issue creation window:
-
Specify the queue to create an issue automatically in.
-
Set issue parameters and click Save.
-
-
If you want the Tracker robot to be the issue reporter, select Create as robot. Make sure that the robot has rights for creating issues in the selected queue.
If the option is disabled, the user whose action fired the trigger will be assigned as the issue's reporter. In this case, the issue will be created only if the user has rights for creating issues in the selected queue.
-
If you want to link the issue that enabled the trigger to the issue created by that trigger, select Link with initial issue.
HTTP request
To send an HTTP request whenever the trigger is fired:
-
Select the HTTP request method.
-
Specify the full URL of the resource
to which the request will be sent. For example:http://example.org/newfolder/newfile
. -
Choose the authorization method:
-
NoAuth
Without authorization.
-
You are prompted to enter your username and password.
-
You're prompted to enter a token, authorization header, and token type.
The authorization data (username, password, token, authorization header, token type) are transmitted in relevant fields and don't require to be re-entered in headers.
-
-
Enter the request body.
You can add issue field values or custom variables to the request body. To do this, click { } to the right of the field and choose the name for the field or value. The request body will include a sequence like
{{variable_name}}
.Note
You can also use variables in the resource URL and header value.
-
Enter the headers and their values.
-
Add new variables if you need them in the request body or headers. For example, you can add an authentication key or other secret information.
Note
When you save the trigger, the variable's value is hidden, and you can't look it up later.
Sample HTTP request settings: