Use case
Display all the reporters of the Cloud issues linked to the current issue in Data Center.
⚒️ Configuration
Create a new Remote action in Jira administration > Manage apps > Remote actions.
Name the new remote action Get Cloud issues.
Select the GET method.
Select your Cloud instance as the default connection or create a new connection.
Enter the following REST path.
/rest/api/3/search?{jql}
Define a default value for the jql parameter.
Create a new Calculated Text Field (by JWT) custom field.
Name the calculated field Reporters of external linked issues.
Providing a description will help you to identify what the custom field does.
Parser expression
Add the following expression.
toString(distinct(toStringList(executeRemoteAction("Get Cloud issues", "body.issues[].fields.reporter.displayName" , ["jql": "key in (" + toString(findPattern(%{issue.remoteLinks} , "([A-Z][A-Z0-9]+-[1-9][0-9]*)")) + ")"] ))))
If the JMESPath expression of this code excerpt is modified, the values of other fields from the linked external issues could be retrieved.
📚 Related use cases
| Title | Field type | JWT feature | Label |
|---|---|---|---|
| Check if an issue was resolved on time | Text |
(input latin letters) |
|
| Components from all sub-tasks |
(input latin letters) |
|
|
| Details of the last comment | Text |
(input latin letters) |
STAFF PICK |
| Difference between two dates in business days | Text |
(input latin letters) |
|
| Display additional details of the issue creator |
(input latin letters) |
|
|
| Display current issue's project category |
(input latin letters) |
|
|
| Display historic due dates |
(input latin letters) |
|
|
| Display reporters of linked Cloud issues | Text |
(input latin letters) |
|
| Google Maps location | Text |
(input latin letters) |
STAFF PICK |
| Highest ranked custom field value among all linked issues | Text |
(input latin letters) |
|
| Last comment, its author, and timestamp | Text |
(input latin letters) |
STAFF PICK |
| Last commenter's full name | Text |
(input latin letters) |
|
| Status and assignee of parent issue |
(input latin letters) |
|