Using Jira Data Center-
I have created a Refresh button (web item) on the Jira issue details page, when pressed I would like to update a property of the currently displayed issue.
I'm having trouble creating a REST endpoint that will do this.
Use Case: Issue "CLI-888" is being displayed and when I click the Refresh button I would like to create or update a property called "requestRefresh" to have the boolean value True.
That's all, but I feel like I'm going down a rabbit hole with groovy and all of the java and atlassian-specific classes, and I haven't yet figured out how to reference the current issue from within scriptrunner.
Seems like this should be trivial, something like "issue.setProperty("requestRefresh", true).
How should I set this property?