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

OSLC - JAVA - RTC - SET and GET values for custom attributes for defect workitem

How to use JAVA code - Programatically to set & get values for below mentioned types of Custom attributes by using OSLC API for RTC defect work-item

1.Enumeration
2.Enumeration List
3.Timestamp
4.Contributor/Filed Against
5.Subscription
6.Category
7.Large String
8.Medium HTML

As of now,we are able to fill the default attribute like Summary,description in RTC defect form.Please guide us programatically to set & get the values for other custom attributes.

0 votes


Accepted answer

Permanent link

 Hi Ralph,

 I'm able to set the custom attribute values for the RTC defect after going through the below form.
Thanks for your help!
Thanks,
Sujith babu

Ralph Schoon selected this answer as the correct answer

0 votes


2 other answers

Permanent link

See:
https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/
https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

There are other posts and API examples on that blog that you can easily find using the search field.
https://rsjazz.wordpress.com/2017/03/29/the-work-item-command-line-is-now-open-source/ has examples for pretty much anything you can do with the Work Item API.

0 votes

Comments

 Hi Ralph,


Thanks for your Answer!

I'm looking for OSLC REST API - JAVA Code to create a RTC defect with custom attribute.
Kindly help me on that.

Thanks,
Sujith Babu

Sorry, missed the OSLC. OSLC is not my turf, sorry.

Try: https://www.google.com/search?q=OSLC+site:jazz.net

Hi Ralph,
 I'm able to set the custom attribute values for the RTC defect after going through the below form.
Thanks for your help!
Thanks,
Sujith babu


Permanent link
Hi Sujith ,

Can you please provide sample code if possible . I am facing issues with updating custom attributes in artifact by usnig OSLC+JAVA. also is there any way to add custom attributes while addition of artifact ?

It will be really helpful if you provide us sample.

Thanks in advance.

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
× 11,019

Question asked: Aug 31 '17, 5:10 a.m.

Question was seen: 3,513 times

Last updated: Dec 04 '21, 7:40 a.m.

Confirmation Cancel Confirm