Custom field does not load using REST Endpoints and Behaviours

Marcelo Montaño Sánchez December 19, 2021

Hello.

I have created a REST Endpoint that gets all object types from Insight, using Insight's REST API.

I have also created a Behavior to load a text field consuming the REST Endpoint. I use the script in the initialization section.

The Endpoint works and the text field is loaded when I open the issue screen (to create or edit), however, if I look for another result, the Behavior no longer works.

What can be the problem that does not allow me to search for more results?

I share the log of the REST Endpoint that shows no errors.

 

The first time the field is loaded without problems:

The first time the field is loaded without problems.PNG

When doing another search, no results are found:

When doing another search, no results are found.PNG

The endpoint shows no errors, and returns the matches found, but the field is not loaded with the new value.

The endpoint shows no errors, and returns the matches found, but the field is not loaded with the new value..PNG

Any suggestion? Thank you.

1 answer

0 votes
David Sumlin December 28, 2021

Have you tried using your endpoint in Scriptrunner scripted field? Seems like this would be a perfect use case for the Custom Picker option.

Suggest an answer

Log in or Sign up to answer