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

Dojo Script for Modified date

Hi,
I was checking to get the workitemattribute for modified date according to state change. When i change the state i need to get value for how long the state is unchanged.Is there any way to get this.

0 votes



2 answers

Permanent link
The JavaScript attribute customization does not provide any means to perform automation on state change. It is not possible to detect a state change and to do something based on it. You can only get the current work item information e.g. the state or attribute data.

I know some users have used tricks storing timestamps e.g. the last modified time to be able to detect a state change had happened and do something with that information. I am not necessarily a fan of those approaches.

Please check https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/ which is a summary of what I learned and what my best practice have been die to that.

0 votes

Comments

Thanks Ralph, 


The actual method if we follow as if i want to get the modification age suppose if u didnt touch the workitem for last 4 days it should automatically show 4 day.If the dojo script changes only when attribute changed the age will be 0 always.So it doest make any sense. 


Permanent link
The JavaScript attribute customization only works when an item is edited.
If you want to see items that are not changed for a certain amount of time, use Queries.
You could use an asynchronous task to send email notifications based on the modified date. See https://rsjazz.wordpress.com/2015/10/16/due-date-notifier-an-asynchronous-task-example/ .

0 votes

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
× 7,495
× 6,121
× 1,325

Question asked: Jul 15 '20, 4:54 a.m.

Question was seen: 1,643 times

Last updated: Jul 17 '20, 2:09 a.m.

Confirmation Cancel Confirm