Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,702
Community Members
 
Community Events
165
Community Groups

Syntax to call variable in a url

Hi All ,

I am getting error while passing the value in the URL.

def projectID= 33587311

 

def http = new HTTPBuilder( 'https://bamboo-abc.com/rest/api/latest/permissions/deployment/${projectID}/groups/devops-business' )

 

 

Thanks & Regards

Bibin Mohan. K

1 answer

1 accepted

0 votes
Answer accepted

Hi Bibin,

What error are you getting? Note that Groovy only performs string interpolation on double-quoted strings and not single-quoted ones.

Regards,

Joanna Choules, Adaptavist Product Support

Hi Joanna Choules,

It's working :)

 

 

Thanks & Regards

Bibin Mohan. K

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

272 views 0 6
Join discussion

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