Knowledge Base Articles
Breadcrumbs

Adding Work Items of specific type to Tempo Internal issues on creation

It might be helpful to add work item to Tempo Internal issues when they are created. This can be done with Automation for JIRA, when a specific work item type is used for Internal issues. In the example, this work item type is “Internal Task”.


Instructions

  1. Set up an automation rule under Spaces->settings->automation.

  2. As the trigger for the automation choose “work item created”.

  3. Add a new condition

  4. Select “JQL condition” and in the jql field, add: issuetype = “Internal Task”

  5. Then, add a new action

  6. In the Notifications section, select to “Send web request”

  7. Web-request-settingPNG.PNG

    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)

  8. The HTTP method is PUT and select Custom data in the Webhook body
    The Custom data should be
    {
    “isInternal”:true
    }

  9. Save and publish the automation.

When creating a new work item in the Space which is of type “Internal Task”, the new work item will directly be added as Internal issue in Tempo.