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

How to calculate holiday using Java Script in RTC

Hi,

How to calculate holiday using Java Script in RTC?

Does anyone have any ideas?

I am going to customize RTC work items. One of most important feature is to calculate an appropriate due date using Java Script.  In order to set due date, calculating holiday is an essential feature. Also, my customer plans to use RTC for several years. I have to consider about maintainability.

Thank you in advance.

Natsumi

0 votes


Accepted answer

Permanent link
Hi,

there is a planning component in RTC that can potentially help you with this - if you provide the scheduled absences.

If you want to use JavaScript, please be aware that the API does not allow you to access data outside the current work item today. If you need more complex data manipulation you would need to use Java as described here: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/

JavaScript is also not available if you use the client API to create work items, it is also not available in other clients than the Eclipse and Web Client. Java Providers would also only support Eclipse and Web UI and have to be deployed in the Eclipse Client(s) as well as on the server.

If you need more, especially have it working on the server to support all clients,  you might need to create a follow up action. See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for how that works.


Natsumi Yokoyama selected this answer as the correct answer

1 vote

Comments

Hi,

Thank you for your immediate respond. :-) 

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
× 10,952

Question asked: Oct 30 '13, 1:53 a.m.

Question was seen: 4,172 times

Last updated: Oct 30 '13, 9:01 p.m.

Confirmation Cancel Confirm