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

Both Calculated and Manual Value

 Hi,
We developed a simple code to calculate due date according to severity and priority. It works fine and sets due date with calculated date info but sometimes due date is needed to set manually. Is there a way to use both calculated value and manually set value?
Thank you.

0 votes

Comments

Can you use the calculated value as the default value and allow the attribute to be modified?

I tried it but it didn't work.


Accepted answer

Permanent link
 Hello,
I assume that your issue is that manually entered due dates are overridden by calculated value after saving the work item, right?

If this is the case, a possible un-tested workaround could be to:
- make the due date read-only and use the calculated value
- a new boolean "Override" attribute - default is false (not selected)
- add presentation for this presentation
- modify your script so that value is calculated only if Override is false

Eric
Kurtulus YILDIRIM selected this answer as the correct answer

0 votes

Comments

Thank you Eric,
However I did it in another way, I used state attribute. If state is null (New created defect), my script works otherwise It doesn't.
Thank you and have a nice day.

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

Question asked: Aug 18 '14, 10:08 a.m.

Question was seen: 3,166 times

Last updated: Aug 21 '14, 5:12 a.m.

Confirmation Cancel Confirm