Confluence has been updated to version 6.15.9

Versions Compared

Key

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

Status
subtletrue
colourGreen
titleJIRA CLOUD
Status
subtletrue
colourGreen
titleZENDESK
Status
subtletrue
colourGreen
titleJira server
Status
subtletrue
colourGreen
titleAzure DevOps

This article describes how to write a script rule in Exalate visual mode.

...

How does it work


The scripts are groovy-based - meaning that all groovy structures can be used to define the behaviour behavior of the mapping.


For instance  - instance, if a mapping is needed between the assignees of one side with the instance name 'left' , and another side with the instance name 'right'.
Following , the following code snippet will implement the mapping:

Snippet
// define the mapping

def leftToRightAssignee = [
    // left Assignee ---> right Assignee
    "peter@acme.com" : "peter.pan@acme.com",
    "cinderella@acme.com" : "cinderalla.white@acme.com",
]


// look up the corresponding email, default to team@acme.com
def targetUserEmail = leftToRightAssignee[left.issue.assignee?.email] ?: "team@acme.com"

// assign to right issue

right.issue.assignee = nodeHelper.getUserByEmail(targetUserEmail)

...