Environment:
- Jira Data Center v8.8.1
- Confluence v7.4.0
- Adaptavist ScriptRunner for JIRA v6.4.0-p5
Problem:
We're using the canned scripted field Date of First Transition that ScriptRunner comes with. The field shows up correctly in Jira (UI, filter results, etc.) and the data comes through the JIRA REST API just fine.
However, when the scripted field is included in the Confluence macro Jira Issue/Filter, it shows up as $xmlutils.escapeForCdata($value.toString()) instead of a date/time value.
Steps to reproduce:
- Create a ScriptRunner scripted field of type Date of First Transition for any issue status. Configure it and make sure its working correctly in Jira.
- Create a filter in Jira (example: bugs submitted by a certain user)
- Create a Confluence page, and insert the macro Jira Issue/Filter in the page. Configure the macro to use the filter from step 2. Set the display options to "Display as: Table", "Maximum issues: 20", and make sure to include the scripted field from step 1 as one of the columns to display along with other standard fields.
- Click "Insert" to insert the macro into the page.
- Save the page.
- When the page renders, all data shows up correctly, except the scripted field which renders as $xmlutils.escapeForCdata($value.toString())
Please help, as this has become a major blocker for our reports.
Thanks,
Kamran Ansari