It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

URL with the query param does not working as expected in scriptrunner endpoint.

Suresh Sakhare Mar 26, 2019

Hi Guys,

I am communicating with the Agile Central through scriprunner endpoind. I am trying to fetch the list of releases with the project. So I have added query param in url like query = "project=XYZ".

Complete url will be : https://jira.asd.com/rest/scriptrunner/latest/custom/getReleases/slm/webservice/v2.0/release?query=(project=XYZ).

It return me a complete list of releases on agile central not the project specified.

 

Please tell me where I am wrong.

 

1 comment

Marc Minten (EVS) Mar 26, 2019

How do you handle the query in your REST endpoint script ?

Suresh Sakhare Mar 26, 2019

Hi Marc,

I am not handling query in endpoint side. 

Marc Minten (EVS) Mar 26, 2019

Where do you handle it then ?

Suresh Sakhare Mar 27, 2019

Hi Marc,

i am new in the script runner. Can you tell me? How to handle the query in endpoint script.

Marc Minten (EVS) Mar 28, 2019

I think you best start from the scriptrunner doc. There is an example on handling parameters.

Comment

Log in or Sign up to comment
Community showcase
Published in Agile

Atlassian's status page got a makeover – subscribe today!

When things go wrong with our products, we want to make sure our customers (you!) are kept in the loop from ‘investigating’ through ‘resolved.' We’ve always aimed to do this through Atlassian’s stat...

2,854 views 9 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you