You can integrate BMC Release Process Management (RPM) with JIRA over SSL. BMC provides a default set of automation scripts that you can import from the library and start using directly. You can also modify the existing scripts or create your own scripts. This topic provides information about the following:
Before you start using automation scripts, you must first create an integration server to connect JIRA and RPM.
In the Password box, enter JIRA user password.
Note
All actions in JIRA are logged under the credentials specified when configuring the integration.
In the Details box, to use JIRA credentials for connection from RPM, enter auth_type: :basic.
After you configure an integration server, import all automation scripts available for JIRA by navigating to Environment > Automation, and then clicking Import scripts from Library on the right pane.
After completing the configurations, you can create a request, add steps to the request, and use the automation scripts available for JIRA to perform your tasks.
Script name | Description |
---|---|
jira_issue_transitions | Retrieves the statuses to which an issue can be transitioned. This data retriever script is used in the progress_workflow_for_issue_jira_rest local Ruby script. |
jira_issue_types | Retrieves all possible issue types that you can create in JIRA. This data retriever script is used in the add_request_issue_jira_rest local Ruby script. |
| Based on the specified JQL filter, retrieves issues from JIRA that can be assigned to a plan. For more information about how and where to use this script, see Associating JIRA issues with a plan. |
Script name | Description |
---|---|
Creates an issue in JIRA. This script uses the jira_issue_types data retriever script that extracts all possible issue types that you can create in your JIRA. | |
Adds a comment to the specified issue. | |
get_issue_status_jira_rest | Returns the current status of an issue. |
progress_workflow_for_issue_jira_rest | Transitions an issue into one of the possible statuses that you can select from the list. This script uses the jira_issue_transitions data retriever script that extracts all possible statuses to which the issue can be transitioned. |
Updates attributes of the specified issue, such as summary or description. |
You can use automation scripts in the steps of a request to perform the different actions in JIRA like creating an issue, adding a comment, getting issue status or changing it, and editing attributes of an issue.
To create an issue in Jira, open the required request and create a step with the following automation:
In the Name box, enter a step name.
From the Type list, select either package or component. The data provided in this box is not used for JIRA integration.
From the Owner list, select a user who will be responsible for the step.
From the Component list, select any component. The data provided in this box is not used for JIRA integration but only to enable automation.
In the Custom attributes box, specify any custom boxes that are required in the created issue. For more information, see Specifying custom attributes.
(click the image to expand)
After you run this automation step, you can go to the Notes tab of the corresponding step and click a link to the created issue.
(click the image to expand)
To add a comment to an issue in JIRA, open the required request and create a step with the following automation:
In the Name box, enter a step name.
From the Type list, select either package or component. The data provided in this box is not used for JIRA integration.
From the Owner list, select a user who will be responsible for the step.
From the Component list, select any component. The data provided in this box is not used for JIRA integration but only to enable automation.
After you run this automation step, you can go to the Notes tab of the corresponding step and click a link to the created issue with the added comment.
(click the image to expand)
To retrieve issue status from JIRA, create a step with the following automation:
In the Name box, enter a step name.
From the Type list, select either package or component. The data provided in this box is not used for JIRA integration.
From the Owner list, select a user who will be responsible for the step.
From the Component list, select any component. The data provided in this box is not used for JIRA integration but only to enable automation.
After you run this automation step, you can go to the Notes tab of the corresponding step to view the issue status.
(click the image to expand)
To change issue status in JIRA, create a step with the following automation:
In the Name box, enter a step name.
From the Type list, select either package or component. The data provided in this box is not used for JIRA integration.
From the Owner list, select a user who will be responsible for the step.
From the Component list, select any component. The data provided in this box is not used for JIRA integration but only to enable automation.
After you run this automation step, you can go to the Notes tab of the corresponding step to view the updated issue status.
(click the image to expand)
Using RPM, you can update text inputs like summary or description. To edit an issue attribute in JIRA, create a step with the following automation:
In the Name box, enter a step name.
From the Type list, select either package or component. The data provided in this box is not used for JIRA integration.
From the Owner list, select a user who will be responsible for the step.
From the Component list, select any component. The data provided in this box is not used for JIRA integration but only to enable automation.
In the Issue field name box, enter the HTML issue attribute name that you want to edit.
Tip
Use Developer Tools of your browser to find out the HTML issue attribute name.
For example, the Description HTML attribute name is description
:
You can use the jira_resource_tickets
data retriever script to extract and associate the required JIRA tickets (issues) to a plan in RPM.
Note
For this script to work, do the following:
When creating an issue, you can populate custom attributes in JIRA by referring to the HTML elements and their values on the JIRA page.
To set a value for any attribute in JIRA, use the following format:
{customFieldID1: [{id: '15600', id: '34343'}]}
{customFieldID2: {id: 'valueID1'}, customFieldID3: {id: 'valueID2'}}
{customFieldID4: {'Oracle DB'}
where customFieldID#
are custom fields in your JIRA and valueID#
are IDs of the possible values for the custom fields.
For example, you want to specify Severity of an issue that is a custom attribute:
add_request_issue_jira_rest
script, in the Custom attributes box, enter {customfield_10001: {id: '12003'}
.