Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

On this page

Table of Contents
maxLevel2
stylecircle
typeflat
separatorpipe

UI Text Box
sizemedium
typeinfo

Use case

In our Jira Service Management project, we want to automatically add the reporter of an incident to the corresponding problem ticket.incident's reporter as a Request Participant on the related problem ticket once the incident is marked as "Done."

UI Text Box
colorlight-yellow
icontip

Prerequisite

You must be using To enable this functionality in Jira Service Management to record incidents. You must have a Jira Service Management Project with a parent Problem Ticket and Incident Tickets that are linked to that Problem Ticket using , a dedicated project must be created specifically for recording incidents and tracking related problems. Each incident ticket should then be linked to its corresponding problem ticket using the "is caused by" relationship. This link ensures that incidents are directly associated with their underlying problem. In addition, the ticket types must include the custom field Request Participant on the screencustom Request Participant field must be available on the Incident and Problem ticket edit screens. This field allows participants to be added to receive updates on the ticket. The custom field code for Request participants is 10040 and will be used later.

Configuration steps

UI Steps
UI Step

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, First, you need to create an action in the workflow to enable synchronization. After setting up this action, add the post function Update fields to handle the specific synchronization tasks. To update the problem we choose as the target issue a parser expressionHere we use the linkedIssues() function to follow the link torwards the problem ticket, that was already set previously.

Code Block
titleTarget issue -> Parser expression
Code Block
%{linkedIssues("isCausedByis caused by")}
Tip
Use the Fields required or changed validator to ensure that the required field is set.

UI Step

Add the request participents to the problem ticket

To add the request participents click on Add field and choose Request participants.

Value*

Set Value→Set field value manually (parser expression).

To add the request participants participant to the problem ticket , you need to combine the list of request participants from the problem ticket with the new participants using you must use the append() function to ensure that you do not overwrite the existing request participants. First, use the the fieldValue(%{issue.cf10040}, linkedIssues("isCausedByis caused by")) function. Here,fieldValue() accesses the custom field for request participants, and in the second step, the the linkedIssues("isCausedByis caused by")function references the linked parent problem ticket. AdditionallyIn addition, the the toStringList(%{issue.reporter}) function retrieves the request participants from the incident ticket and returns the reporter's account id. 

Code Block
titleValue*Add field -> Request participants -> Value
%{append(fieldValue(%{issue.cf10040}, linkedIssues("isCausedByis caused by")),toStringList(%{issue.reporter}))}

Expand
titleHow to get a custom field code

Simply

Info

To get the right custom field,simply click Add field and search for Request participants within the expression parser to find the correct custom field.

Image Added

Image Modified Related Examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, LabelComplexity
sortByTitle
cqllabel = "use-case" and space = currentSpace() and ancestor = "38569498"

Page properties
hiddentrue


JWT feature

Workflow function

Update fields

Parser functions

append()

fieldValue()

linkedIssues()

toStringList()

Label
Use case descriptionIn our Jira Service Management project, we want to automatically add the reporter of an incident to the corresponding problem ticket.
Complexity

Status
colourGreen
titleBeginner



Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue