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

Some questions about the REST API

Hello,

I am developing an application that utilizes the REST API for RTC. However, I am having a small issue understanding how to utilize the creation of a draft work item. I am confused about there being multiple ways to represent a type in the JSON representation. For example,

rdf:type, rtc_cm:type and dc:type

They all seem to mean the same thing, but I don't think they are interchangeable. My application also has no way of updating the user as to which fields are required to create a work item, so there is no way for me to create an actual work item. A draft is my only option.

So, in order to determine if a type is valid. I am going to have to let the user type in a String and then validate to make sure that the type is valid. I don't think doing this for every potential field in a work item, is a good idea.

This brings me to my next question. How customizable is the RTC environment? Can the representation of a work item, a normal one or a draft, be drastically different depending on the environment?

Thanks for any responses. It will help greatly to clear some of these up

0 votes


Accepted answer

Permanent link
Bryan,
I'm going to try to give you some pointers that came from searching in the Jazz.net forum and general Google. I'm not sure how to answer all your questions but there is a way to understand what rtc_cm: vs dc: mean?
In this article, https://jazz.net/library/article/352, Steven explains that attributes that use dc: or oslc_cm namespace are defined by OSLC CM specification and CORE specification:
http://open-services.net/bin/view/Main/OslcCoreSpecification
http://open-services.net/bin/view/Main/CmSpecificationV2

There is also this article on how to use the plain Client API for RTC: https://jazz.net/library/article/1229

It is also possible to create a workitem via the OSLC API.  THere should be a way to determine what attributes are required to create a workitem via plain Client API or OSLC.

You can also consider using the delegated UI concept of the OSLC API. See https://jazz.net/library/article/352 RTC as a OSLC provider makes available a "delegated creation" dialog that you can make use of in your application as an OSLC consumer.

I am not sure why you make a d
Bryan Perino selected this answer as the correct answer

0 votes


One other answer

Permanent link
Additional info about draft workitems using OSLC API:  https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Creating_Draft_Work_Items

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
× 10,927
× 478
× 368

Question asked: Feb 25 '14, 11:50 a.m.

Question was seen: 5,495 times

Last updated: Feb 26 '14, 2:45 p.m.

Confirmation Cancel Confirm