Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to define 'Remote Issue Picker' script field value in JSON REST API request?

Michal Plevka _Externist_ HCI_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 29, 2021 edited

Hello,

I have a problem with defining 'Remote Issue Picker' script field value (field created from Scriptrunner) in JSON request for creating issues through REST API. This field can have multiple issues selected as a value. 

Field is working properly in Jira and we can search remote issues and select them as values.

I have tried different definitions mentioned Scriptrunner's documentation, where I found some info about this type of field, but there was a missing REST API section.

The example of JSON request definition I am looking for:
fields: { customfield_12345: ["MSD-5", "MSD-6"] }

____Additional Info____
Jira Type: Jira Server
Scriptrunner version: 6.26.0

1 answer

1 vote
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2021

I don't have a ready-to-test remote issue picker field but I would recommend you examine your browser developer tools for what the payload looks like when you create an issue that has such links in the web app.  You should be able to use the same format when creating an issue with the Rest API.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery learning path, product discovery training, idea prioritization, align stakeholders, discovery to delivery, product collaboration, atlassian learning, dev process, roadmap planning, insight capture, team alignment

Elevate Your Skills with Jira Product Discovery!

Unlock your potential and learn how to use Jira Product Discovery to your advantage. You’ll have the expertise to revolutionize ideas and insights, roadmapping, engage and align teams and stakeholders, and deliver the best solutions—faster. Enroll today!

Start Learning
AUG Leaders

Atlassian Community Events