Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can we pass a value dynamically (as build property value ) when we request build via REST API?

One of our customer want to do pass a workitem number as build property value when they request build via REST API.

Follow of actions and pre-works are like this:
Pre-work 1: Create a build property as a string called "WORK_ITEM_NO".
pre-work 2: Create a attribute called "Request_build_URL"

Action-flow:
1) add REST API URL in "Request_build_URL" to request a build from WorkItem. they also want to pass workItem number as long as build request.
2) the Request run build and workitems number will be filled as build property.

Can we archive this?
If so, any comment and advice is appreciated.

I had found these helpful information but these dose not explain how to add workitem number to Request build REST API .

Request a build via REST api
https://jazz.net/forum/questions/107687

Build REST API
https://jazz.net/forum/questions/26893

[RTC-2010] RESTful API for Build, to support C/ALM integration scenarios
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=73070

 Thank you, in advance!
 

0 votes


Accepted answer

Permanent link
Hi ryosuke,

Nick's first answer to https://jazz.net/forum/questions/107687 shows an example HTTP POST request that defines a string property "addedProperty" with the value "some value".  You should be able to do the same with a property named "WORK_ITEM_NO" and some sort of variable substitution depending on how you're making the request.

It reads like you're hoping to be able to request a build with an HTTP GET request.  This is not supported.  Please read this link for an explanation of the differences ... http://www.w3schools.com/tags/ref_httpmethods.asp.

To test some HTTP POST requests, try installing the Poster Addon to Firefox ... https://addons.mozilla.org/en-us/firefox/addon/poster/

Scott
ryosuke oka selected this answer as the correct answer

0 votes

Comments

Hi Scott,
Thank you for your helpful advices!

I will check this with customer and may post more questions.

I'd be happy to help where I can.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 7,495

Question asked: Jul 31 '13, 5:53 a.m.

Question was seen: 5,349 times

Last updated: Aug 02 '13, 8:26 a.m.

Confirmation Cancel Confirm