Transition ServiceNow Request Statuses
You must be a Project Admin to perform these steps.
Ways to access Automation rules in your project:
Project Settings->Automation
On a Scrum or Kanban Board (not the Backlog) select the lightning bolt at the top of the page
Or in an issue select Actions at the top of the right panel
Select Create automation or Manage automations
To “Work in Progress” from “In Progess” Status Category (Blue Statuses)
Create a new rule
Add a Trigger = Issue Transitioned
From status - leave blank to match all statuses
To status - select the In progress status in your project or any other In Progress (blue) statuses.
Next
Add component-> IF: Add a condition -> Related issues condition
Related issues - Linked issues
Link type - Select the link type used in the automation rule to create the issues.
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 Work in PRogress status.
Add additional conditions in your query as needed.
Validate your query
Next
Add a Branch rule / related issues - this is so you will update the ServiceNow Request, not the current issue.
Type of related issues - Linked issues
Link type - select the Link type set up in the Create automataion rule
Next
Add component → THEN Add an Action -> Transition issue
Destination Status - 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.
Next
In Rule Details, give the rule a meaningful name and description
Turn on Rule
To “Closed Complete” from “Done” Status Category (Green Statuses)
Create a new rule
Add a Trigger = Issue Transitioned
From status - leave blank to match all statuses
To status - select the Done status(es) in your project (green) statuses.
Next
Add component-> IF: Add a condition -> Related issues condition
Related issues - Linked issues
Link type - Select the link type used in the automation rule to create the issues.
Condition - Some match specified JQL
Matching JQL - issuetype = "ServiceNow Request" and status != "Closed Complete"
This will only update the ServiceNow Request if it is not already in Closed Complete status.
Add additional conditions in your query as needed.
Validate your query
Next
Add a Branch rule / related issues - this is so you will update the ServiceNow Request, not the current issue.
Type of related issues - Linked issues
Link type - select the Link type set up in the Create automataion rule
Next
Add component → THEN Add an Action -> Transition issue
Destination Status - 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. Example - Assignee can be copied from the trigger issue.
Next
In Rule Details, give the rule a meaningful name and description
Turn on Rule
To “Closed Incomplete” from “Done” Status Category (Green Statuses)
Create a new rule
Add a Trigger = Issue Transitioned
From status - leave blank to match all statuses
To status - select the Done status(es) in your project (green) statuses. Determine which statuses you have that will indicate work is not being done.
Next
You can also narrow down the issues you want to mark as Closed Incomplete by adding a condition, such excluding some resolutions.
Add component-> IF: Add a condition -> JQL condition
JQL - resolution not in (Done, Resolved, Completed, Fixed)
Validate query.
A list of available Resolutions can be found here.
Add component-> IF: Add a condition -> Related issues condition
Related issues - Linked issues
Link type - Select the link type used in the automation rule to create the issues.
Condition - Some match specified JQL
Matching JQL - issuetype = "ServiceNow Request" and status != "Closed Incomplete"
This will only update the ServiceNow Request if it is not already in Closed InComplete status.
Add additional conditions in your query as needed.
Validate your query
Next
Add a Branch rule / related issues - this is so you will update the ServiceNow Request, not the current issue.
Type of related issues - Linked issues
Link type - select the Link type set up in the Create automataion rule
Next
Add component → THEN Add an Action -> Transition issue
Destination Status - Closed INComplete
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.
Next
In Rule Details, give the rule a meaningful name and description
Turn on Rule
Follow the above steps for any other status mapping you want to automate.
Add label