Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
On this page
|
...
Recipe overview
...
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
On this page
|
Include Page | ||||
---|---|---|---|---|
|
Recipe overview
This recipe provides step-by-step instructions on how the opening of a highest priority ticket can trigger the automatic creation of a HipChat room in order to communicate about that ticket. This facilitates quick resolution to critically important tickets and ensures effective communication to all interested parties occurs.
It will take you approximately 13-16 minutes to complete this recipe.
Recipe level
Table plus | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
Ingredients
Table plus | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
Preparation
This recipe assumes that either the usernames or display names of your JIRA users
...
match the usernames or @mention names of your HipChat users.
You will need JIRA Administrator permissions to your JIRA instance in order to complete this recipe.
It will take you approximately 12-13 minutes to complete this recipe.
...
Steps
Table plus | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
Table plus | ||||||||||||||||||
| ||||||||||||||||||
|
Ingredients
Table plus | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
Preparation
N/A
Steps
How to Create a HipChat Room to Communicate About a High Priority Ticket | Test the post function
In this step, you will verify the post function is working as intended.
Anchor | step7 | step7
In this step, you will be defining a user defined substitution variable for the Run CLI Actions in JIRA add-on. By defining this information once as a user defined substitution variable, you can re-use it on a workflow or the Run CLI Actions screen to tell it how to connect to your HipChat instance. To do this, log on to your JIRA instance as a JIRA Administrator and do the following:
Anchor | step1 | step1 | User Defined Substitution Variables:
Configure Run CLI Actions in JIRA screen, after defining new variable:
How to Create a HipChat Room to Communicate About a High Priority Ticket | Create a JIRA project to use with this recipe
In this step, you are going to create a project you will use when making and testing the workflow change that creates a HipChat room.
Anchor | step2 | step2 | Create Issue screen:
How to Create a HipChat Room to Communicate About a High Priority Ticket | Add Assignee to the Create screen
In this step, you will add the Assignee field to the Create screen to ensure it can be input. By default, the project is configured to set the default Assignee to "Unassigned."
Anchor | step3 | step3 | Configure Screen, after adding the Assignee field:How to Create a HipChat Room to Communicate About a High Priority Ticket | Create a draft workflow
In this step, you will edit the workflow used by the Run CLI Actions in JIRA project so you can begin the process of adding the Run CLI Actions post function that will create a HipChat room when a Blocker ticket is opened.
Anchor | step4 | step4 | Step: To Do screen:Transition: Create screen: How to Create a HipChat Room to Communicate About a High Priority Ticket | Add a post function on the Create transition
In this step, you will add a post function on the Create transition. In a later step, you will configure this post function. From the Transition: Crreate screen, do the following:
Anchor | step5 | step5 | Transition: Create screen, before any changes:Add Post Function To Transition screen: How to Create a HipChat Room to Communicate About a High Priority Ticket | Configure the post function, part 1
In this step, you will begin configuring the post function you just added to the Create transition so that tickets of the highest priority will trigger the creation of a HipChat room. From the Add Parameters To Function screen, do the following:
Anchor | step6 | step6 | Post Function parameters:
Transition: Create screen, after adding the Create Issue post function:
In this step, you are going to create a project you will use when making and testing the workflow change that creates a HipChat room.
Add Assignee to the Create screen
By default, the project is configured to set the default Assignee to "Unassigned." In this step, you will add the Assignee field to the Create screen to ensure it can be input if desired.
Create a draft workflow
In this step, you will edit the workflow used by the Run CLI Actions in JIRA project so you can begin the process of adding the Run CLI Actions post function that will create a HipChat room when a Highest priority ticket is opened.
Transition: Create screen: Add a post function on the Create transition
In this step, you will add a post function on the Create transition. In a later step, you will configure this post function. From the Transition: Create screen, do the following:
Configure the post function, part 1
In this step, you will begin configuring the post function you just added to the Create transition so that tickets of the highest priority will trigger the creation of a HipChat room. From the Add Parameters To Function screen, do the following:
Transition: Create screen, after adding the Create Issue post function: Configure the post function, part 2
In this step, you will complete the configuration of the post function by moving it so that it is executed after the new issue is created. You will then publish the workflow so you can test it. From the Transition: Create screen, do the following:
Test the post function, part 1
In this step, you will verify the post function is working as intended when assigning the newly created issue to a specific user.
Create a reusable CLI script
How to Create a HipChat Room to Communicate About a High Priority Ticket |
Popup confirmation screen: HipChat Room created for the new issue (Admin's view): HipChat Room created for the new issue (Participant's view): Test the post function, part 2
If you'd like to save your CLI commands for later reuse, you can save them as a CLI script file. Using an editor capable of producing a plain text file, such as Notepad (Windows) or TextEdit (Mac), create a script file named:
Save it in the same folder to which you installed the HipChat and Confluence CLI clients and make sure it has permissions so that you can read, write and execute it. Follow these steps in your command window to execute the script file you just created:
The script will run, showing the result of executing each action. Anchor | step8 | step8 | Contents of example CLI script file:
Command to execute reusable script file: Code Block |
In this step, you will verify the post function is working as intended when not specifying an Assignee for the newly created issue.
With this approach demonstrated in this recipe, you are able to ensure your highest priority issues are effectively resolved, with all interested parties kept informed!
HipChat Room created for the new issue (Admin's view): HipChat Room created for the new issue (Reporter's view): |
Include Page | ||||
---|---|---|---|---|
|