Server extension api - Find out if IIteration object is set as backlog
I am using SDK 6.0.3
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Mar 16 '17, 4:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I have spent some minutes searching the SDK for public boolean isBacklog(); Note: you can do things like that too. I only have the SDK that anyone else has.
The method is found in com.ibm.team.apt.api.common.process.IIteration.isBacklog() . Note the Interface is a different one you use. It is a special adoption for agile planning. There are other interesting code pieces e.g. com.ibm.team.apt.internal.service.tools.ProcessItemResolver.isBacklogIteration(IIteration) .
You can probably find out if an iteration is a backlog iteration given the hints above, but I have no code for it.
Comments
Sian O'Briain
commented Mar 16 '17, 12:21 p.m.
Thank you!
Sian O'Briain
commented Mar 16 '17, 12:41 p.m.
hmm the problem I now face is that I am getting the IIterationHandle using the workItem getTarget() method. It seems this handle can't be used with com.ibm.team.apt.api.common.process.IIteration
1
What you are seeing is that the apt - agile planning tools domain has its own API. It also has its own flavor data for parts of the data model. There seem to be ways to get the data connected, but that would be in the com.ibm.team.apt.* package code.
The other issue here is, that the agile planning does not have aa real API and you will end up using classes that are internal. I published one example here: https://rsjazz.wordpress.com/2015/06/11/creating-plans-with-the-plain-java-client-api/
I can't really help you without spending a lot of my own time digging into the API. You definitely need the RTC SDK set up and be able to see into the code that comes with the the SDK to do this.
thanks I went a bit further and used the service you mentioned above:
Ralph Schoon
commented Mar 16 '17, 4:54 p.m.
| edited Mar 16 '17, 5:17 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The warning tells you not to touch the API, because it is internal - as I mantioned above.
I would go with 1 if I where you.
Ralph Schoon
commented Mar 17 '17, 4:08 a.m.
| edited Mar 17 '17, 4:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not sure about the compilation error. You should test this stuff on Jetty if it is a server extension.
6.0.3 unfortunately the updated extensions workshop for 6.0.3 has not yet be published due to other site maintenance going on.
showing 5 of 6
show 1 more comments
|
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.