I have a REST endpoint that fetches data from an external database. I am using it to convert text field into single select list and that is working like a charm but I also want to use the data provided by that endpoint to populate couple of custom fields. And that is a problem because I don't know how to connect to the endpoint from SR Behaviour.
I tried something simple like HTTPBuilder in the following script:
def builder = new HTTPBuilder('https://myJira.com')
def data = builder.get(path: "/rest/scriptrunner/latest/custom/logistics")
But it only works if the endpoint isn't restricted to a particular user group and this endpoint must be restricted. I know that I could probably put authentication credentials to HTTPBuilder but it doesn't make sense to me since I am reaching an endpoint in the same system.
Anyone knows of a way to get to a SR endpoint from groovy script without authentication?
Any suggestions would be very appreciated ;)
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs