Forums

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

Reqesting scriptrunner scripted field using rest returns empty value

Christoph Piotrowski April 26, 2018

Hi all,

 

I am using scripted custom fields to show a linked parent issue id.

I can see the value correctly calculated in the issue details and in a search result list. But when I access the issue using a rest command, the custom field information is not available.

Can someone explain how I can access scripted field information using rest - or is this not possible using standard jira rest interface? Do I need to create a scriptrunner rest endpoint?

 

Thansk for any help!

Christoph

 

2 answers

0 votes
Christoph Piotrowski May 26, 2018 edited

Hello Thanos,

I meanwhile addressed this issue directly towards adaptavist. It happens when using the "show parent" feature of a scripted field:

https://productsupport.adaptavist.com/servicedesk/customer/portal/2/SRJSUP-4597

It took some time but finally the bug was confirmed by adaptavist, your supporter created this ticket:

https://productsupport.adaptavist.com/browse/SRJIRA-2833

But this bug was already known as you can see in duplicate ticket:

https://productsupport.adaptavist.com/browse/SRJIRA-2818

So bascially it was a long way until there but now the ticket is unassigned. :-)

 

Regards

Christoph

0 votes
Thanos Batagiannis [Adaptavist]
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.
May 25, 2018

Hi Christoph, 

What template you use for your scripted field ? 

For example in a scripted field that returns 

issue.key

and its template is Text Field then you can get the value of the scripted field via a rest call in the same way with all the other custom fields

/rest/api/2/issue/${issueKey}?fields=${customFieldId}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events