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

Temporary disable e-mail alerts before WI comment

I'm using the Java API to add a comment to a workitem as follows


/*

* Generate a working copy of the work item which can be modified.
*/
WorkItemWorkingCopy workingCopy = workingCopyManager.getWorkingCopy(workItemHandle);

IWorkItem workItemToBeModified = workingCopy.getWorkItem();

/*
* Get the comments create a new one, and save the change.
*/
IComments comments = workItemToBeModified.getComments();
IComment comment = comments.createComment(myRepository().loggedInContributor(), XMLString.createFromXMLText(commentText));
comments.append(comment);
workingCopy.save(null);


I use this to add a comments to multiple workitems, each comment containing references to all the others: i.e.
"Task 12345, Task 67891, Defect 76543"etc so that a user can read the comment in one workitem and be able to click the Task Numbers to get to the others.
But because it's a link, anybody with with e-mail alerts for mentions links who is subscribed to all the workitems gets a LOT of e-mail.

My question - is it possible to silently create these links without firing the event for the mentions link which sends the e-mail out?
Or is it possible to temporarily disable the event listener which picks up the Mentions Link creation before I make the comment, then reinstate it afterwards?

Any suggestions?

0 votes



One answer

Permanent link
Any feedback on this at all? Perhaps just a pointer in the right direction?

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: Feb 04 '11, 10:18 a.m.

Question was seen: 4,855 times

Last updated: Feb 04 '11, 10:18 a.m.

Confirmation Cancel Confirm