Forums

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

GET Rest API in JIRA without basic auth with ScriptRunner plug-in

Neta Elyakim
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 16, 2018

Hey,

I'm trying to send a rest call (GET) from JIRA with ScriptRunner plug-in to get some details on the issue.

I do it from JIRA interface so that why I want to do it without inserting basic auth to my code- use JIRA auth.

Please help!

Thanks! 

1 answer

0 votes
Kirubel Tesfaye
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 16, 2018

Hi @Neta Elyakim,

I don't think that is possible because JIRA’s REST API is protected by the same restrictions which are provided via JIRAs standard web interface. This means that if you do not log in, you are accessing JIRA anonymously.

So try to get the authentication from your JIRA interface (which seems to be additional work) and add to your request..or simply  add the basic auth into your code

 

Neta Elyakim
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 16, 2018

Hey,

Thank you for your response but the rest is sending within Jira interface (with ScriptRunner)  meaning that I have to log-in in order to run the request.

Thanks

Neta Elyakim
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 16, 2018

That is what I mean when I asked- send the rest without basic auth - I assume that it required from me to take the basic auth in a generic way.. but I don't know how to do it :)

Suggest an answer

Log in or Sign up to answer