You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Use case

In our Jira Service Management project, we want to automatically add the reporter of an incident to the corresponding problem ticket as a Request Participant when the ticket is moved to 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" relationsip. In addition, the ticket types must include the custom field Request Participant on the edit screen.

Configuration steps

Get started

Add the post function Update fields to the transition. To update the problem we choose as the target issue a parser expression. Here we use the linkedIssues() function to point to point to the Problem Ticket, using the same function that linked the Incident Ticket to the Problem ticket. 

target issue -> Parser expression
%{linkedIssues("is caused By")}

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 gives the reporter as a list. 

Add field -> Request participants -> Value
%{append(fieldValue(%{issue.cf10040}, linkedIssues("isCausedBy")),toStringList(%{issue.reporter}))}

Simply click Add field and search for Request participants within the expression parser to find the correct custom field.

Related Examples


If you still have questions, feel free to refer to our support team.