Uploaded image for project: 'Elements Connect'
  1. Elements Connect
  2. CO-2357

Evaluate Organization field from JSD in query

    XMLWordPrintable

    Details

    • Functional components:
      Velocity

      Description

      Motivation

      Display to a JSD customer information related to its organization, stored in a external system.

      When I configure a nFeed field used in JSD, I want to have access to the user organizations (name or id) in my query, So that I can tune my field to only display data related to the user's orgs

      Impacts

      If Jira Service Desk is installed, add a new velocity variable: organization evaluated as:

      • $issue.organizations > organizations ids (an array)
      • $issue.organizations.id > organizations ids (an array)
      • $issue.organizations.name > organizations names (an array)

      If we can't use $issue.organizations, we should at least support $issue.customfield_XXX but its less user friendly

      Workaround

      We can extract the Organization name with a regex:

      #set($regex = "(.*)(, name=)")
      #set($organizationName = $issue.customfield_xxxx.toString().replaceAll($regex, "").replaceAll("}",""))
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              christophe.prome@valiantys.com Christophe Promé
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: