How to fetch changeset information on workitem save?
I am writing an advisor to get the change set information from link section of Task.
What is the workitem end point to get changeSet link or How to get reference to changeSet?
for example
I used below code to get related work items
List<IReference> links = param.getNewReferences().getReferences(WorkItemEndPoints.RELATED_WORK_ITEM);
Note:- I am writing a precondition using server side APIs.
What is the workitem end point to get changeSet link or How to get reference to changeSet?
for example
I used below code to get related work items
List<IReference> links = param.getNewReferences().getReferences(WorkItemEndPoints.RELATED_WORK_ITEM);
Note:- I am writing a precondition using server side APIs.
One answer
The link type is WorkItemLinkTypes.CHANGE_SET , I think.
https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ explains the other direction. Maybe that helps.
https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ explains the other direction. Maybe that helps.
Comments
showing 5 of 6
show 1 more comments