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

EWM 7.0.2 - Set dueDate based on Iteration endDate

We're trying to develop a metric that measures the on-timeness of the closure of certain work item types. 

We're not a typical "Sprint" style company (not software), but we do try to plan work into 4-week chunks. 

We look ahead and give a work item a baseline iteration (the basis for the metric) and a planned iteration (which should be in advance of the basline). 

I have made a custom attribute called "Baseline Iteration" of type "Iteration"/"Interval". 


I would like to be able to automatically set the work item's dueDate based on the end date of the "Baseline Iteration" with Attribute Customisation. I have a few value provider customisations set up already so I'm familiar with how they work.  

I'm not sure how to get the "Baseline Iteration" as an interval type then get the end date of it. Can anyone help?

Thanks

1

1 vote


Accepted answer

Permanent link
I've been searching for a simple function call that returns the underlying object but still can't find one, however you can access the attribute's underlying object via the work item proxy
- getValue returns the ID 
- getLabel returns the visible label
- workItem.getProxy().object.attributes['<attribute ID>'] returns the object underneath

So something like console.log(workItem.getProxy().object.attributes['target'].endDate);  will print the end date of the Planned For iteration to the console. This can then be easily converted into a date object and manipulated in a calculated value customisation
Glyn Costello selected this answer as the correct answer

0 votes

Comments

that worked, thanks! Appreciate that it's not in the public API, so will need to keep that in mind through upgrades, etc. 

Please be aware that - as far as I know -  the internal API workItem.getProxy() is also not available in the EWM Eclipse client, should you use that.


One other answer

Permanent link

As far as I am aware, there is only limited support for items in the JavaScript API. 


See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript . I am not aware that you can find the iterations in JavaScript. 

You would have to try a Java based attribute customization or a follow-up action.

0 votes

Comments

Thanks, alternatively, is there a way that RS (LQE datasource) can see/report on when an iteration ends?

I do not know. Sorry.

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
× 11,007

Question asked: Mar 31, 6:15 a.m.

Question was seen: 347 times

Last updated: Apr 02, 2:19 a.m.

Confirmation Cancel Confirm