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

Jazz build Ant API, Resource Oriented Work Item API 2.0

Hello,

Two questions for RTC API:

1. Jazz build Ant API,

There is a task in Jazz Team Builds:
Associating a build with a release
Can we get to this functionality thru Jazz build Ant API?

2. Resource Oriented Work Item API 2.0:
rtc_cm:state
Status Reference The status of the work item (modifiable via action)
Can we chagne it somehow thru oslc API?

If not - are there plans to implement it in Jazz next release?

Thanks! :D

Regards,
Michal

0 votes



5 answers

Permanent link
Hi Michal,

Associating a build with a release is not currently supported via the Build toolkit Ant tasks, but it is something the Build team could consider.

Please open an enhancement request on this point.

Please provide a scenario to have a better understanding of the need; normally a release is only created after some manual review process.


1. Jazz build Ant API,
There is a task in Jazz Team Builds:
Associating a build with a release
Can we get to this functionality thru Jazz build Ant API?

0 votes


Permanent link
2. Resource Oriented Work Item API 2.0:
rtc_cm:state
Status Reference The status of the work item
(modifiable via
action)
Can we chagne it somehow thru oslc API?

You can do a regular PUT of the resource as you would for changing any
attribute, but include the workflow action as a URL parameter:

....com.ibm.team.workitem.WorkItem/247?_action=com.ibm.team.workitem.defectWorkflow.action.startWorking

Here's an example curl script which changes the work item's state:

COOKIES=./cookies.txt

URL=https://localhost:9443/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/247?_action=com.ibm.team.workitem.defectWorkflow.action.startWorking

curl -D - -k -b $COOKIES -H "If-Match: $1" -H "Content-Type:
application/x-oslc-cm-change-request+xml" -H "Accept:
application/x-oslc-cm-change-request+xml" -X PUT --data-binary @247.xml $URL

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Thank You for answer !

I will put the request for 1st issue, and implement the solution for 2nd issue (the solution sounds great for me).

Thank You for advice !



Regards,
Michal

0 votes


Permanent link
I have created the request :

Enhancement 108384

I will be looking for some comments on this :) ....

Thank You!

:)

0 votes


Permanent link
I have tested the solution, and can get the results.
Could You advice me on that further?

My testing script:

curl -L -k -b ./tmp.cookie -H "Content-Type: application/x-oslc-cm-change-request+xml" -H "Accept: application/x-oslc-cm-change-request+xml" -X PUT --data-binary @635.xml.resolved $URL
URL=https://localhost/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/635?_action=bugzillaWorkflow.action.close


635.xml.resolved:

<oslc_cm:ChangeRequest xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" xmlns:oslc_disc="http://open-services.net/xmlns/discovery/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1\
/" xmlns:jp="http://jazz.net/xmlns/prod/jazz/presentation/1.0/" xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:rdf="http://\
www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/">
<rtc_cm:comments oslc_cm:collref="https://localhost:443/jazz/oslc/workitems/635/rtc_cm:comments"/>
<rtc_cm:resolvedBy rdf:resource="https://localhost:443/jazz/oslc/users/_97MGcbeCEd6Q485VnqXi9w"/>
<rtc_cm:resolved>2010-03-17T08:10:18.484Z</rtc_cm:resolved>
<rtc_cm:estimate>90000</rtc_cm:estimate>
<rtc_cm:state rdf:resource="https://localhost:443/jazz/oslc/workflows/_xOCa0LJSEd6FWYCjUcr1AQ/states/bugzillaWorkflow/3"/>
<rtc_cm:resolution rdf:resource="https://localhost:443/jazz/oslc/workflows/_xOCa0LJSEd6FWYCjUcr1AQ/resolutions/bugzillaWorkflow/1"/>
</oslc_cm:ChangeRequest>

0 votes

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

Question asked: Feb 18 '10, 7:25 a.m.

Question was seen: 7,647 times

Last updated: Feb 18 '10, 7:25 a.m.

Confirmation Cancel Confirm