It's all about the answers!

Ask a question

Programmatically Creating a Work Item


John Rodriguez (1111) | asked Apr 05 '11, 2:49 p.m.
Hello,

My apologies as it seems that this topic is covered quite a bit here in the forums but I was looking for some definite advice on creating and modifying work items programmatically. I guess there are two ways to go here:

1. Via the RTC API as detailed here:
https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation

2. Via the OSCL API as detailed here:
http://jazz.net/forums/viewtopic.php?p=45148

My intent is to get some basic integration between JIRA v4.0 and RTC v3.0 whereby an issue opened in JIRA instantiates a corresponding work-item in RTC and vice versa.

I should also say that my java programming skills are amateur at best but I am willing to work really hard at this to get it working the best way that it is recommended.

I know that there is a solution available from the folks at CM-Logic but at this point this is not an option.

Any thoughts/advice is welcome.

3 answers



permanent link
sam detweiler (12.5k6189201) | answered Apr 07 '11, 2:36 p.m.
there is a bunch to do here..
but.. I thought there was an integration with JIRA already

the code that injects a workitem is called a workitem client, this is inbound into RTC

outbound you need a remote repository handler.

this article is a good description of the big picture.
http://www.ibm.com/developerworks/rational/library/10/synchronizedatarepositoriesbyusingtherationalteamconcertitemconnector/index.html?ca=drs-
this is not a lot of code.. I think both mine are less than 500 lines of code total. (my repository provides a clean api to use, very small amount of code)

this gets a little more specific on the two parts.
https://jazz.net/wiki/bin/view/Main/ItemConnectorCreation#External_Repository_Manager

and getting the development environment setup
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup

Sam

permanent link
John Rodriguez (1111) | answered Apr 07 '11, 4:12 p.m.
Thanks Sam, I had not though about doing it this way; these docs are definitely good references!

As for the existing JIRA integration, I believe you are talking about the one offered by the CM logic folks http://www.cm-logic.com/jazzconnect-jira.html; however, this would be costly for us at this time. Is this what you were talking about? Or is there something else that I have not come across?

Thanks again!

there is a bunch to do here..
but.. I thought there was an integration with JIRA already

the code that injects a workitem is called a workitem client, this is inbound into RTC

outbound you need a remote repository handler.

this article is a good description of the big picture.
http://www.ibm.com/developerworks/rational/library/10/synchronizedatarepositoriesbyusingtherationalteamconcertitemconnector/index.html?ca=drs-
this is not a lot of code.. I think both mine are less than 500 lines of code total. (my repository provides a clean api to use, very small amount of code)

this gets a little more specific on the two parts.
https://jazz.net/wiki/bin/view/Main/ItemConnectorCreation#External_Repository_Manager

and getting the development environment setup
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup

Sam

permanent link
sam detweiler (12.5k6189201) | answered Apr 08 '11, 12:26 p.m.
...

As for the existing JIRA integration, I believe you are talking about the one offered by the CM logic folks http://www.cm-logic.com/jazzconnect-jira.html; however, this would be costly for us at this time. Is this what you were talking about? Or is there something else that I have not come across?

...


yes that connector.

well, nothing is free. if you develop one, that takes time, energy and long term support..

my adapter synchs about 10 properties, does comments synch near realtime with dates in both directions.. and working on files(attachments) too.. but sometimes its complicated by the lack of development supporting docs. see my enhancement request for files our way..
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/153049

Your answer


Register or to post your answer.