Excerpt | ||
---|---|---|
|
Table of Contents | ||||
---|---|---|---|---|
|
|
Set up your automation rules:
Anchor | ||||
---|---|---|---|---|
|
Info |
---|
You must be a Project Admin to perform these steps. |
Create a related issue when a ServiceNow Request is created
Create a new rule
Add a Trigger - Issue Created
Add a Condition - Issue fields condition
Field: Issue Type
Condition: equals
Value: ServiceNow Request
You can add other Conditions as needed (Assignment group equals, Description contains, etc)
Action - Create issue
Project: Same Project
Issue type
Add other fields as required
Summary (Can copy from Current or Trigger issue)
Description
Linked issue
Add link type and Trigger issue to relate the new issue to the ServiceNow Request
Info |
---|
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. |
Transition ServiceNow Request to
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Create a new rule
Add a Trigger = Issue Transitioned
From status - leave blank to match all statuses
To status - select the
statuses in your project.Status colour Blue title In progress Examples:
Status colour Blue title Design in Progress Status colour Blue title Design Review Status colour Blue title In Progress Status colour Blue title Dev Done Status colour Blue title Load Testing Status colour Blue title UAT Status colour Blue title Merge
etcStatus colour Blue title validation Make sure you include all
statuses in order to transition your ServiceNow Request appropriately.Status colour Blue title In progress
Save
Add a Condition - Related Issues Condition
Related issues - Linked issues
Link type - All link types
Condition - Some match specified JQL
Matching JQL - issuetype = "ServiceNow Request" and status != "Work in Progress"
This will only update the ServiceNow Request if it is not already in
status.Status colour Blue title Work in PRogress Validate your query
Save
Add a Branch rule / related issues
Type of related issues - JQL
JQL - issuetype = "ServiceNow Request"
Validate query
Check the box next to “Only include issues that have changed since the last time this rule executed”
Save
Add an Action - Transition issue
Destination Status -
Status colour Blue title Work in PRogress 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.
Save
Name your rule and Publish.
Transition ServiceNow Request to
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Create a new rule
Add a Trigger = Issue Transitioned
From status - leave blank to match all statuses
To status - select the
statuses in your project.Status colour Green title Done Examples:
Status colour Green title Completed Status colour Green title Accepted Status colour Green title CLosed
etcStatus colour Green title Done
Save
Add a Condition - Related Issues Condition
Related issues - Linked issues
Link type - All link types
Condition - Some match specified JQL
Matching JQL - issuetype = "ServiceNow Request" and statuscategory != "Done"
This will only update the ServiceNow Request if it is not already in
statuscategory.Status colour Green title Done Validate your query
Save
Add a Branch rule / related issues
Type of related issues - JQL
JQL - issuetype = "ServiceNow Request"
Validate query
Check the box next to “Only include issues that have changed since the last time this rule executed”
Save
Add an Action - Transition issue
Destination Status -
Status colour Green title CloseD Complete If you want to copy additional information over to the ServiceNow Request, you can what fields to set on the ServiceNow Request here.
Save
Name your rule and Publish.
Follow the above steps for any other status mapping you want to automate.