Use case
In our Jira Service Management project, we want to automatically add the incident's reporter as a Request Participant on the related problem ticket once the incident is marked as "Done."
Prerequisite
You must be using Jira Service Management to record incidents. You must have a Jira Service Management Project with a Problem Ticket and Incident Tickets that are linked to that Problem Ticket by an "is caused by" relationship. In addition, the ticket types must include the custom field Request Participant on the edit screen.
Alternativ:
To set up this functionality in Jira Service Management, the following requirements must be met:
- A dedicated project should exist for recording incidents and tracking related problems.
- Incident tickets must be linked to their corresponding problem ticket using the “is caused by” relationship, allowing them to be directly associated with the underlying problem.
- The custom Request Participant field needs to be available on the edit screen for both incident and problem tickets. This field allows adding participants to receive updates on the ticket.
With these requirements in place, you can set up an automation to automatically add the incident’s reporter as a **Request Participant** on the problem ticket once the incident is marked as “Done.”
Configuration steps
Get started and set the issue to be updated
Add the post function Update fields to the transition of the Done transition of the incident workflow. As we would like to update the Request Participants of the problem ticket, we need to identify the issue to be updated. To to this, we choose as the target issue a parser expression. Here we use the linkedIssues()
function to follow the link torwards the problem ticket, that was already set previously.
%{linkedIssues("is caused By")}
to ensure the link is set and there is only one, use a validator .... (einmal in nett)
Add the request participents to the problem ticket
To add the request participents click on Add field and choose Request participants.
Value*
Set field value manually (parser expression).
To add request participants to the problem ticket, you need to combine the list of request participants from the problem ticket with the new participants using the append()
function. First, use the fieldValue
(%{issue.cf10040}, linkedIssues("isCausedBy"))
function. Here, fieldValue()
accesses the custom field for request participants, and in the second step, the linkedIssues("isCausedBy")
function references the linked parent ticket. In addition, the toStringList(%{issue.reporter})
function retrieves the request participants from the Incident Ticket and returns the reporter as a list.
%{append(fieldValue(%{issue.cf10040}, linkedIssues("isCausedBy")),toStringList(%{issue.reporter}))}
Related Examples
If you still have questions, feel free to refer to our support team.