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

Require Link before continuing the workflow

Hi there,

The question is quite simple: Is there a possibility to require a link to a workitem befor progressing to the next workflow state?

Unfortunately, i couldn't find any precondition for that.

Detailed explanation: I have a workitem of type "task" and the "default workflow" associated with it. My requirement would be, that if i progress the workflow of this task from "new" to "in progress", RTC requires a link to another workitem.

For the advanced helpers in this forum :-) :
 Highly appreciated would be, if i can require special link types ("blocked/blocked by", ...) or workitem types ("Defect", ...).

Kind regards
Dennis

1

1 vote



One answer

Permanent link

 You will have to create your own custom advisor to do that. A good starting point would be 

https://rsjazz.wordpress.com/2012/09/20/the-rtc-workitem-server-link-api-linking-to-work-items-and-other-elements/ for the link API. 

The API to get the links of a type from the new work item state (after the save) is

List<IReference> references = saveParameter.getNewD_WORK_ITEMS);

where the work item end point is replaced by the desired one. savePArameter is ISaveParameter see the advisor example.

All posts link to getting started and setting up the dev environmReferences()
.getReferences(WorkItemEndPoints.CHILent.

1 vote

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
× 6,116
× 29

Question asked: Jan 16 '19, 4:14 a.m.

Question was seen: 2,399 times

Last updated: Jan 16 '19, 5:21 a.m.

Confirmation Cancel Confirm