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

Workitem Save

Is it possible to intercept a Workitem Save operation, and display a "Do you want to save... Yes, No, Cancel" popup? "Yes" would continue the Save operation. "No" would terminate the Save operation. "Cancel" would do nothing and leave the user with unsaved changes on their UI.

I want this to be conditional based on some logic... for example, if I detect a attribute in the workitem to be a 'invalid' value, I would tell the user... and the user could choose to override my message and save anyway.

Thanks,

Dave

0 votes



6 answers

Permanent link
Hi
Maybe you could use an IOperationAdvisor for that? More info available from: https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation.

Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
I am familiar with preconditions and follow-up actions for Work Item Save. They run on the server. I don't see how to bring up a 'are you sure... Y/N/Cancel' box from a server precondition. The API doesn't appear to support it. And this must work with both the Eclipse and Web client.

Can you elaborate on the approach? Or point to some existing code that has this functionality that we can review? Or perhaps this is not possible... if that is the case, we need to know that.

Thanks,

Dave

0 votes


Permanent link
Hi
With the precondition, you can cancel the save on the server and the Team Advisor will show your message on the client. Then the user can override the condition if desired and save again.
But I think there is no Team Advisor in the Web/UI.

Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
For a client-side pre-condition, you can use Eclipse API to present a message or prompt, or other UI. You need to be careful to keep the UI responsive, but this is a reasonable option. Obviously this pre-condition couldn't be used on the server.

Hope this helps.

Thanks,
Scott Rich
Jazz Team

0 votes


Permanent link
ok... so let's summarize... tell me if this is correct:

I want to intercept the Work Item Save operation, which is a server operation. Therefore, my precondition must also be a server precondition.

For a user with the Eclipse client, I could throw an error message from this precondition to the Team Advisor that the user can override.

For a user with the Web client, there is no solution.

Correct?

Thanks,

Dave

0 votes


Permanent link
Yes, your summary is correct: the Advisor Web UI is basically an error
dialog without any means of interaction.
I suggest to file an enhancement request against Process.

--andre weinand
RTC Work Item Team


On 2009-05-11 23:47:57 +0200, deweber@us.ibm-dot-com.no-spam.invalid
(deweber) said:

ok... so let's summarize... tell me if this is correct:

I want to intercept the Work Item Save operation, which is a server
operation. Therefore, my precondition must also be a server
precondition.

For a user with the Eclipse client, I could throw an error message
from this precondition to the Team Advisor that the user can
override.

For a user with the Web client, there is no solution.

Correct?

Thanks,

Dave

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

Question asked: May 07 '09, 4:26 p.m.

Question was seen: 6,682 times

Last updated: May 07 '09, 4:26 p.m.

Confirmation Cancel Confirm