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
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 (
Can we chagne it somehow thru oslc API?
If not - are there plans to implement it in Jazz next release?
Thanks! :D
Regards,
Michal
5 answers
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.
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?
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
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>
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>