Export JSON data to Custom ScriptRunner Field

Daniel November 9, 2020

Hi,

We are in the process to move to the Cloud, but we are using a plugin that is not available on the cloud (MyToDo). The JIRA Server version that we are currently using is v7.12.3 and ScriptRunner 6.5.0

I was able to copy the raw data from that field by using the preset script "Copy Custom Field" option on ScripRunner. The data was stored in a Text Field and this is the kind of data that I get

[{"id":" should not poll BLE device","type":"todo_undone"},{"id":"should poll BLE device when is offline","type":"todo_done"}]

I do not know the JIRA API and I am not sure how to setup the custom groovy field. 

What I am expecting to have at the end of the day is, the data stored in a MultiString Field like this:

should not poll BLE device -> NO

should poll BLE device when is offline -> YES

NOTE: All these changes are going to be done on the Server instance

 

 

0 answers

Suggest an answer

Log in or Sign up to answer