Re: having a detector add a message to an issue
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Dan: In message <[email protected]>, Dan Tenenbaum writes: >> From: "John P. Rouillard" <[email protected]> >> Sent: Thursday, May 14, 2015 7:08:15 PM >> For future reference, what did you end up using? > >I added this to my detector: > > if not 'messages' in newvalues: > msg_id = db.msg.create( > author=db.getuid(), > date=Date('.'), > summary='', > content='' > ) > > newvalues['messages'] = [msg_id] > > >After that, I can append to the message file just as I was doing before. Just outof cuirriosity, did you try setting "content" to the contents you want in the message file? I claim that should work and will save a step. This does create a branch in the path though the code which I guess you don't want, but I think it will end up adding a journal entry for the file that may/may not be important in your use case. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y