Forums

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

Questions about Scriptrunner Rest Endpoint double calls

jyh0226@kicco.com March 9, 2021

Hi,

 

When calling the rest endpoint from the scriptrunner rest endpoint, is there a way to keep the information about the user?

User > Rest Endpoint (user info exist) > Rest Endpoint (user info null)

There is also a way to pin user information to the second Rest Endpoint, but we are looking for another way because permission are fixed.

 

Thanks you.

1 answer

1 accepted

0 votes
Answer accepted
Benz Kek _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.
March 16, 2021

Hi there, 

By keeping the information, do you mean in a database or some text file? Technically they are doable as long you have the required permissions.

For example,

  • To write to a database, you need to have the JDBC URL, credentials to log in from the script. OR
  • To write to a text file, your Jira user (the one who started the instance) has to have file permission. 

Basically, REST endpoints are a sort of API that allows you to do things, itself doesn't store data. But it doesn't prevent you to store things somewhere else. 

Regarding your question on posting the user information to the second REST Endpoint, you can do that as well. Theoretically, you need to make an HTTP call from the first REST Endpoint to the second one. Here's an example from StackOverflow. 

Hope the above helps! 

Suggest an answer

Log in or Sign up to answer