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

How to get the creation date of a relation?

 Hello there,

we're "piloting" RTC for project planning since over a year now within our company. We heavily use the REST reporting API with Python scripts for several use cases. We're using RTC 4.0.4.

Now we need the history of an items relations or at least the creation date of a specific relation for our scripts. I didn't find any clue how to get that info. Even in the web and the desktop client I can't find the information at what time a relation was created.

Can anybody please tell me how to get that info via the clients and the REST API?

Thanks!
Daniel

0 votes

Comments

Can you please describe a little more.. what is a relation?  do you mean linked item?

 Hi! For me, a relation is the object that "links" from one item to another. So, I don't mean a linked item "itself" but the relation between two linked items. Standard process templates have relation types like "parent", "depends on", "duplicate of" and so on. If I, for example, define an item A as child of item B, I create a new relation between A and B. This relation is typed (parent/child) and directed (A and B have different roles: child and parent). My problem now is, that I want to inspect the relations for a given item with their history. Getting the currently defined relations with the reporting REST API is no problem, but there is no historical information about the relation. It's also not possible to get information about already deleted relations. My primary demand is to get the creation date of an existing relation.


BTW: The reporting REST API provides a full sequence of all "historical records" of an item and each of them contains relation information. BUT: The data in each history record just reflects the current situation. This is confusing and "not right".



2 answers

Permanent link
great info, thanks for the additional clarity..  As you have noticed there is no historical info saved on the creation or deletion of links. this has been mentioned before and I think a request for enhancement was added.

net: what you want is not available today.

0 votes

Comments

Thanks for the info, even it's disappointing... :)


Permanent link
Tracking the addition/removal of links in the history of a work item was added in RTC-5.0.2.
See [CCM] Track link changes in work item history (314953)

0 votes

Comments

Thanks Geoffrey! Thanks for the answer! The work item you've mentioned lists the acceptance test:

"The link history is interweaved with the rest of the history content for the work item and sorted by time."

It's not totally clear for me what that means. Do you know if the relations history is then correctly available in the resporting REST API's history records as every other attribute?

I'll need to defer to our HTTP API experts on the question of whether this information is available through an HTTP API, or whether you would need to use the Java API.  

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,936
× 137
× 67

Question asked: Feb 04 '15, 5:07 a.m.

Question was seen: 4,948 times

Last updated: Feb 06 '15, 12:04 a.m.

Confirmation Cancel Confirm