It might be helpful to add issue to Tempo Internal issues when they are created. This can be done with Automation for JIRA, when a specific issue type is used for Internal issues. In the example, this issue type is “Internal Task”.
Instructions
-
Set up an automation rule under projects->settings->automation.
-
As the trigger for the automation choose “Issue created”.
-
Add a new condition
-
Select “JQL condition” and in the jql field, add: issuetype = “Internal Task”
-
Then, add a new action
-
In the Notifications section, select to “Send web request”
-
As Webhook URL, enter
YOUR_JIRA/rest/tempo-core/1/issues/{{issue.key}}
and as headers, add
Content-type application/json
Authorization Basic xxxxxx
(The Authorization is basic. To find the authentication in the correct format, you can use the terminal with a command like:
echo -n username:password | base64
or run the REST API in Postman and it will show the value for the authentication) -
The HTTP method is PUT and select Custom data in the Webhook body
The Custom data should be
{
“isInternal”:true
} -
Save and publish the automation.
When creating a new issue in the Project which is of type “Internal Task”, the new issue will directly be added as Internal issue in Tempo.