Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Get pipeline by uuid is not working, could you please help?



I am running a http request from a groovy script :

def spn = 'myusertoauthenticate'    
def content = 'APPLICATION_JSON'    
def url = "{workspace}/{repo_slug}/pipelines/{pipeline_uuid}

def response = httpRequest authentication: spn, contentType: content, timeout: 20, url: url, validResponseCodes: '200'   

I received a 400 bad request. 

The POST request is working fine and also when I call the GET function without the {pipeline_uuid} I received all the pipelines, but the issue is when I call with the {pipeline_uuid}, the pipeline uuid that I am using is the pipeline uuid that I received in the POST. 



1 answer

1 accepted

0 votes
Answer accepted


I Fixed using the url like this:

def url = "{workspace}/{repo_slug}/pipelines/%7Bpipeline_uuid%7D

My issue was related with the {} in the pipeline uuid, so I replaced using %7B and %7D


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

105 views 1 7
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