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

Popup a dialog box after clicking the WI save button

Hi,

I have a need as follows,

Whenever the user saves the work item, it should popup a dialog box where the user can enter the values for few of the WI's custom attributes.

I have written a custom followup action which saves the attribute values to the repository based on some condition, so the popup dialog box should simply change the values in the WI editor.
I am trying to write a client side precondition for the WIsave operation. so that the precondition will change the values in the editor and the followup action will save the values to the repository.
I am not sure whether this is the correct way or not.
I couldn't figure out how to create a dialog box in the precondition plugin and I dont know whether the client side precondition plugin should be added to both the server and the client or just add it to the eclipse client alone.

Any help is appreciated.

Thanks,
Sany

0 votes



5 answers

Permanent link
Hi,

I have a need as follows,

Whenever the user saves the work item, it should popup a dialog box where the user can enter the values for few of the WI's custom attributes.

I have written a custom followup action which saves the attribute values to the repository based on some condition, so the popup dialog box should simply change the values in the WI editor.
I am trying to write a client side precondition for the WIsave operation. so that the precondition will change the values in the editor and the followup action will save the values to the repository.
I am not sure whether this is the correct way or not.
I couldn't figure out how to create a dialog box in the precondition plugin and I dont know whether the client side precondition plugin should be added to both the server and the client or just add it to the eclipse client alone.

Any help is appreciated.

Thanks,
Sany


1. For the WI's custom attribute, why not use the editor part generated by RTC automatically for you? instead of use a pop up dialog to input value? http://jazz.net/library/article/129

2. For the client side precondition plugin, it only belongs to the client, you needn't add it to the server.

--Alex

0 votes


Permanent link
Hi Guys,

I have created custom attributes from the project configuration page only. The users can enter the values to the custom attributes directly too.

But I want to make sure that whenever the work item is saved, a pop up should appear with text boxes for entering the values, so that the user doesn't forget entering the values before saving.

Questions
----------
1) How to create a pop up page when the user clicks on the save button for a work item and copy the values entered in the pop up page to the work item attributes which we are trying to save. By this way, we are forcing to user to enter the values for those attributes.

How do I proceed, I tried using client side precondition but I don't know how to save the values to the work item editor.


Sany

Hi,

I have a need as follows,

Whenever the user saves the work item, it should popup a dialog box where the user can enter the values for few of the WI's custom attributes.

I have written a custom followup action which saves the attribute values to the repository based on some condition, so the popup dialog box should simply change the values in the WI editor.
I am trying to write a client side precondition for the WIsave operation. so that the precondition will change the values in the editor and the followup action will save the values to the repository.
I am not sure whether this is the correct way or not.
I couldn't figure out how to create a dialog box in the precondition plugin and I dont know whether the client side precondition plugin should be added to both the server and the client or just add it to the eclipse client alone.

Any help is appreciated.

Thanks,
Sany


1. For the WI's custom attribute, why not use the editor part generated by RTC automatically for you? instead of use a pop up dialog to input value? http://jazz.net/library/article/129

2. For the client side precondition plugin, it only belongs to the client, you needn't add it to the server.

--Alex

0 votes


Permanent link
I have created custom attributes from the project configuration page
only. The users can enter the values to the custom attributes
directly too.

But I want to make sure that whenever the work item is saved, a pop up
should appear with text boxes for entering the values, so that the
user doesn't forget entering the values before saving.

I would suggest that you make the attributes required and place them in
a prominent location using the editor presentation configuration options.

This will prevent users from saving the work item without entering the
values and is much more in line with the standard editing/ux experience.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Hi,

I want the user to change the attribute values "every time" he changes the WI state to a particular state.

Marking the attributes "required" wont work 'coz if once a value is entered then WI save operation wont be blocked. What I need is to ensure that the user has changed the attribute values whenever he changes the WI state.

Let me know your suggestions as how it can be done, without affecting the standard user experience.

Thanks,
Sany

0 votes


Permanent link
I want the user to change the attribute values
"every time" he changes the WI
state to a particular state.

Marking the attributes "required" wont work 'coz if once a
value is entered then WI save operation wont be blocked. What I need
is to ensure that the user has changed the attribute values whenever
he changes the WI state.

Let me know your suggestions as how it can be done, without affecting
the standard user experience.

You could write a process precondition that enforces your constraint.

For details, please see:
https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation

--
Regards,
Patrick
Jazz Work Item Team

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: Dec 22 '09, 1:48 a.m.

Question was seen: 8,141 times

Last updated: Dec 22 '09, 1:48 a.m.

Confirmation Cancel Confirm