Hello everybody. I try to integrate 2 instances of Jira via REST API and scriptrunner (create issues and make transitions) and a question is which authentication use basic or OAuth? I use HTTPBuilder to make requests and can't understand how to use OAuth in scriptrunner or may be basic is enough?
@aasfor HTTPBuilder that uses `Signpost` internally I suggest you use, BASIC authentication for simplicity.
The reason I am suggesting this is because you will face issues like `signature_method_rejected`. This can be resolved, but BASIC Auth is simpler, and since your trusted by both Jira there is no harm using it.
Such complexity arises only with using HTTPBuilder? May be there're some other, mmm I don't know how to say, classes to send requests in groovy? What is most often use in such cases and what is the best practise?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@aasCheck this out - https://stackoverflow.com/questions/39529599/groovy-jira-oauth-integration-using-httpbuilder (it has solution of 'signature_method_rejected' issue)
And also look at this documentation ScriptRunner provide Unirest library - https://scriptrunner-docs.connect.adaptavist.com/jiracloud/#_unirest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.