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

When delivering how can I require that A certain workitem type is being used and it is in a certain state?

 I am using RTC 6.0.5 with the SCRUM template.  
I have been asked to allow deliveries to happen only if the following is true:
1) Must be associated with a work item either new or existing.
2) The work item type is Story or Task
3) The task is in an active state (for example: New or In Progress for a Task work item)
4) It is for the current sprint.
I believe that I do this some how in the Project or Team configuration Operation Behavior but I cannot see how to enforced these pre conditions for a delivery action.
Thanx in advance for the help

0 votes


Accepted answer

Permanent link

You should be able to use the built-in conditions:

Require-Work-Items-and-Comments for (1) and (4)
Require-Work-Items-To-Match-Query for (2) and (3) 

Bob Ferguson selected this answer as the correct answer

0 votes

Comments

Yes, you can chain them, but as far as I can tell, it is impossible to require one work item has all the properties. With that approach you will also satisfy the conditions with two work items, one that satisfies 1 and 4 and one with 2 and 3. 

And if you have more than one work item linked to a change set, you have to decide whether you want:

- all of the work items to satisfy all of the conditions, 
- at least one of the work items to satisfy all of the condiditons
- each of the conditions to be satisfied by at least one of the work items


One other answer

Permanent link

 You have to create your own custom advisor similar to this one.


https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/

You would have to have additional checks for the work item that is linked.

The built in precondition does not check for the work item type.

0 votes

Comments
 I need to see if they will allow me to create a custom advisor.  If they are willing to forget about the work item type how do I do the other conditions:
1) Work Item must exist or be created.
2) The Work Item is in an particular state(s).
3) The Work Item is for the current sprint.

See com.ibm.team.filesystem.service.internal.ServerRequireWorkItemAdvisor once you are doing the extension workshop.  See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/.


1) If there is no work item (of that type) linked, fail
2) Test the state of the work item, fail
3) Figure out what the current sprint is and check the work item that is linked (see example of internal code above)

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
× 12,017

Question asked: Jan 30 '19, 11:45 a.m.

Question was seen: 1,422 times

Last updated: Feb 11 '19, 11:16 p.m.

Confirmation Cancel Confirm