Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 278766

Summary: Extending mylyn for bug triage
Product: z_Archived Reporter: Matěj Cepl <mcepl>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: mik.kersten, mober.at+eclipse, steffen.pingel
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://git.fedorahosted.org/git/?p=triage.git;a=blob_plain;f=scripts/bugzillaBugTriage.user.js;hb=HEAD
Whiteboard:
Attachments:
Description Flags
screenshot of bugzilla page with my Greasemonkey scripts active none

Description Matěj Cepl CLA 2009-06-02 08:46:59 EDT
I am a bugmaster at Red Hat and such I work on a lot of bugs at once. I have created Greasemonkey scripts for extending Firefox to work better for me (see URL for their location in fedorahosted.org repository). Aside from key shortcuts which are covered in the separate bug 278761 the main point of the script is set of buttons adding pre-filled texts and doing simple actions over bugs (e.g., "Please, give us logs in file /var/log/Xorg.0.log" and setting bug to NEEDINFO). Another IMHO great improvement above the original state of bugzilla is differentiating bugs by the different background of whole web page (e.g., in order to easily distinguish between RHEL and Fedora bugs).

There are many things which I like on mylyn (offline work) and I am trying to investigate whether it would be possible to use it instead of Firefox with Greasemonkey. Unfortunately I have no clue where to begin. Is it possible to make some extension for Mylyn? I would prefer some scripting language (Python, Javascript) over plain Java, but if worst comes to worst, I can do even that (a little).

Any ideas?
Comment 1 Matěj Cepl CLA 2009-06-02 08:47:46 EDT
Created attachment 137990 [details]
screenshot of bugzilla page with my Greasemonkey scripts active
Comment 2 Mik Kersten CLA 2009-07-23 17:36:37 EDT
Matej: Yes, this is now possible.  You can contribute a new section to the Mylyn task editor, in this case the Bugzilla editor, and call it something like "Triage".  Into that section you can add all your specific actions.  The neat thing is that by reusing the existing Mylyn components for fields, you get access to things like context assist for bugs and people.

Do you want to give that a try and let us know your experiences?  There's some documentation at: http://wiki.eclipse.org/Mylyn/Integrator_Reference#Tasks_API but you'll probably have to read the code.  Would be great if you could expand on those docs as you go.
Comment 3 Mik Kersten CLA 2009-07-23 17:38:48 EDT
Martin: CC'ing you since your expressed interest in triage-specific functionality.

As a side note, Steffen and I were considering adding a "Triage" button below the Submit button, if the following were present:
* The bug was assigned to *-inbox@...
* The *-triage@... assignee was present

This might only work for bugs.eclipse.org, but others could follow the convention, and it would be trivial to implement.
Comment 4 Matěj Cepl CLA 2009-07-24 02:24:18 EDT
Let me add just here this link to remember
http://jvliet.blogspot.com/2007/02/creating-mylar-connector-plugin-for.html
Comment 5 Matěj Cepl CLA 2009-07-24 02:34:53 EDT
(In reply to comment #3)
> This might only work for bugs.eclipse.org, but others could follow the
> convention, and it would be trivial to implement.

Well, that's a problem ... I cannot write a Java code, if it saves my life (I tried couple of times), whereas Greasemonkey script mentioned above is easy and just works. I may be even able to rewrite it as a proper Firefox plugin (so that my users could get automatic updates). I may have to wait for somebody else to make anything sensible in Mylyn.
Comment 6 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn