Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Child pages (Children Display)

...

allChildrentrue
PDF
nameRequest automation.pdf

...

Info

You must be a Project Admin to perform these steps.

Create a related issue when a ServiceNow Request is created

  1. Create a new rule

  2. Add a Trigger - Issue Created

  3. Add a JQL Condition

    1. issuetype = "ServiceNow Request" and "Assignment Group" = "My Assignment Group"

  4. You can add other Conditions as needed

  5. Action - Create issue

    1. Project: Same Project

    2. Issue type

    3. Chose which fields to set - can copy values from the Request or set default values

      1. Summary (Can copy from Current or Trigger issue)

      2. Description

      3. Linked issue

        1. Add link type and Trigger issue to relate the new issue to the ServiceNow Request

    4. You can also set the Team field under More Options-> Additional fields

Info

{
"fields": {
"Team": "XXXXXXX"
}
}

You can find the Team number using the issue navigator and searching for your Team.

"Team[Team]" = “Team Name”

The Team Name will change to the number as soon as you select the team name from the drop down.

Note

You cannot copy attachments using Automation but you can link to the attachment in the related request by using the following smart value:

Attachments: {{attachment.content}}

See example to the right.

image-20240910-143818.pngImage Removedimage-20240910-144128.pngImage Removedimage-20240910-144402.pngImage Removedimage-20240910-145223.pngImage Removed

Transition ServiceNow Request to
Status
colourBlue
titleWork in Progress
if the related issue is in an
Status
colourBlue
titleIn progress
status category (blue statuses)

  1. Create a new rule

  2. Add a Trigger = Issue Transitioned

    1. From status - leave blank to match all statuses

    2. To status - select the

      Status
      colourBlue
      titleIn progress
      status in your project or any other In Progress (blue) statuses.

    3. Next

image-20240910-152335.pngImage Removed

  1. Add a Condition - Related Issues Condition

  2. Related issues - Linked issues

    1. Link type - Select the link type used in the automation rule to create the issues.

    2. Condition - Some match specified JQL

    3. Matching JQL - issuetype = "ServiceNow Request" and status != "Work in Progress"

      1. This will only update the ServiceNow Request if it is not already in

        Status
        colourBlue
        titleWork in PRogress
        status.

      2. Add additional conditions in your query as needed.

      3. Validate your query

    4. Next

image-20240910-153529.pngImage Removed
  1. Add a Branch rule / related issues - this is so you will update the ServiceNow Request, not the current issue.

    1. Type of related issues - Linked issues

    2. Link type - select the Link type set up in the Create automataion rule

    3. Next

image-20240910-153723.pngImage Removed
  1. If you have additional issue types using the same link type, you may want to add a Condition to check for only ServiceNow issue types

    1. Condition - Issue fields condition

      1. Field - Issue Type

      2. Condition - equasl

      3. Value - ServiceNow Request

image-20240910-154310.pngImage Removed

  1. Add an Action - Transition issue

    1. Destination Status -

      Status
      colourBlue
      titleWork in PRogress

    2. If you want to copy additional information over to the ServiceNow Request, you can what fields to set on the ServiceNow Request here. Example - Assignee can be copied from the trigger issue.

    3. Next

image-20240910-155419.pngImage Removed

  1. Name your rule and Publish.

Transition ServiceNow Request to
Status
colourGreen
titleCloseD Complete
if the related issue is in an
Status
colourGreen
titleDone
status category (green statuses)

  1. Create a new rule

  2. Add a Trigger = Issue Transitioned

    1. From status - leave blank to match all statuses

    2. To status - select the

      Status
      colourGreen
      titleDone
      statuses in your project.

      1. Examples:

        Status
        colourGreen
        titleCompleted
        Status
        colourGreen
        titleAccepted
        Status
        colourGreen
        titleCLosed
        Status
        colourGreen
        titleDone
        etc

    3. Save

  3. Add a Condition - Related Issues Condition

    1. Related issues - Linked issues

    2. Link type - All link types

    3. Condition - Some match specified JQL

    4. Matching JQL - issuetype = "ServiceNow Request" and statuscategory != "Done"

      1. This will only update the ServiceNow Request if it is not already in

        Status
        colourGreen
        titleDone
        statuscategory.

      2. Validate your query

    5. Save

  4. Add a Branch rule / related issues

    1. Type of related issues - JQL

    2. JQL - issuetype = "ServiceNow Request"

      1. Validate query

    3. Check the box next to “Only include issues that have changed since the last time this rule executed”

    4. Save

  5. Add an Action - Transition issue

    1. Destination Status -

      Status
      colourGreen
      titleCloseD Complete

    2. If you want to copy additional information over to the ServiceNow Request, you can what fields to set on the ServiceNow Request here.

    3. Save

  6. Name your rule and Publish.

Image Removed

...