# Sailpoint Service Desk Integration with Jira

**URL:** <https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, rules\
**Created:** [August 16, 2023, 5:27pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176 "2023-08-16T17:27:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adyer](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@adyer](https://developer.sailpoint.com/discuss/u/adyer)\
**Post date:** [August 16, 2023, 5:27pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/1 "2023-08-16T17:27:45Z")

</div>

Hi Team,

We have integrated with Jira Service Desk for ticket creation in IDN. The integration is working as expected, however we would like to pass the following attributes in the summary request. I’m able to get the source name, requestid, identity but not able to get the displayname in the message. Below is what i’ve tried so far.

SailPoint Access Request for $request.resource #if($request.items.displayName) for the user $request.items.displayName #end

The idea is to dispay the message in Jira summary as:

Sailpoint Access request for Application A for user John Doe

---

<div class="post-metadata">

**Author:** ![omar\_khote\_iam](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/omar_khote_iam/32/246_2.png) [@omar\_khote\_iam](https://developer.sailpoint.com/discuss/u/omar_khote_iam)\
**Post date:** [August 16, 2023, 9:08pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/2 "2023-08-16T21:08:38Z")

</div>

Hello @adyer ,

Can we try something like:

```auto
$!plan.arguments.displayName

```

Notice, how we are using the ! exclamation mark which is another shorthand for the if else statement.

If you use !$ it will be the same as a normal “!” operator, however the $! is used as a basic check to see if the variable is blank and if so it prints it out as an empty string. If your variable is empty or null and you don’t use the $! annotation it will print the actual variable name as a string.

Have you seen this guide it also has some useful examples here additionally: [Working with Velocity Template Language in ITSM Ticketing - Compass](https://community.sailpoint.com/t5/IdentityNow-Wiki/Working-with-Velocity-Template-Language-in-ITSM-Ticketing/ta-p/191157)

Kind Regards,

Omar  
Omar Khote, CISSP

---

<div class="post-metadata">

**Author:** ![adyer](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@adyer](https://developer.sailpoint.com/discuss/u/adyer)\
**Post date:** [August 16, 2023, 10:01pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/3 "2023-08-16T22:01:08Z")

</div>

Hi Omar,

thanks, I tried the above and it returned no result. Also, I tried with different attributes such as email and no results generated. So, the idea is to provide the displayname in the summary of the request when access is getting revoke during the certification.

---

<div class="post-metadata">

**Author:** ![omar\_khote\_iam](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/omar_khote_iam/32/246_2.png) [@omar\_khote\_iam](https://developer.sailpoint.com/discuss/u/omar_khote_iam)\
**Post date:** [August 17, 2023, 10:58pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/4 "2023-08-17T22:58:10Z")

</div>

Hey Alex oh cool, sure did we just simply define the variable alone in the Summary field? That would of course not work and we would need the velocity to iterate over the provisioning plan (similar to the example in the document) however instead we would be looking for an operations such as ‘Modify’ …

Please try this template first:

```auto
#foreach($request in $plan.requests)
  $!{request.operation} account '${request.id}' on ${request.resource}
  #if($request.items)
    #foreach($item in $request.items)
    Additional Details:

    Display Name:[$!plan.arguments.displayName] $newline
    Account name:[$!plan.arguments.nativeIdentity] $newline

      $!{item.Operation} attribute '${item.name}' with value: ${item.value}
    #end
  #end
#end

```

We could also then enhance the logic based on the operation we want to call this for something like if above works:

```auto
#foreach($request in $plan.requests)
    #if($request.operation =='Modify' || $request.operation =='Remove')
    
    Display Name:[$!plan.arguments.displayName] $newline
    Account name:[$!plan.arguments.nativeIdentity] $newline

    #else

  #if($request.items)
    #foreach($item in $request.items)
    Additional Details 2:

    Display Name:[$!plan.arguments.displayName]

      $!{item.Operation} attribute '${item.name}' with value: ${item.value}
    #end
  #end
#end

```

please note there could be typos in above syntax\*

---

<div class="post-metadata">

**Author:** ![adyer](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@adyer](https://developer.sailpoint.com/discuss/u/adyer)\
**Post date:** [August 23, 2023, 5:03pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/5 "2023-08-23T17:03:19Z")

</div>

Thanks Omar. I tried using the above velocity in summary and getting the below error:

Also, I tested the velocity in the description field and it worked, however the displayname had no values. I’m wondering if there’s a limit on the information that you can pass in the summary field.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/e/e731e9558866a1cf3661685e9481e35a246fcd32.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 22, 2023, 5:03pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-service-desk-integration-with-jira/16176/6 "2023-10-22T17:03:31Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
