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

Bug 144962

Summary: support JIRA task attribute editing operations
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: brockj, ekuleshov
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 143260    
Bug Blocks: 160780    
Attachments:
Description Flags
mylar/context/zip none

Description Mik Kersten CLA 2006-06-01 15:56:33 EDT
We can currently add comments, also need the basic operations.
- change status (e.g. resolve, close)
- start watching
- change attributes (e.g. description)

Other more advanced operations can be filed as seperate bug reports (e.g. voting, attachments).
Comment 1 Mik Kersten CLA 2006-06-01 16:01:47 EDT
This would best be done in a test driven way rather than driven by the editor UI.  We already have tests (see AllJiraTests) that work with bugs from the Tigris.org repository.  Tests that modify bugs should either use a mock repository, or perhaps we could set up a JIRA on our mylar.eclipse.org virtual server?

Brock, any ideas?  
Comment 2 Brock Janiczak CLA 2006-06-01 16:48:15 EDT
This would be quite easy using the mock server implementation that is already available.  It support all of these operations and some the real adapter doesn't.  I am not sure how to go about doing this in an automated way though.  You would have top open the mock project and close the soap one before running any tests.
Comment 3 Mik Kersten CLA 2006-06-02 12:14:04 EDT
That could be achieved by setting the plug-in classpath for AllJiraTests.  Not perfect since every developer would have to do it, but for now probably easier to deal with than making the mock and soap JIRA services swappable.
Comment 4 Robert Elves CLA 2006-11-08 21:07:29 EST
Committed the beginnings of action support. Still some outstanding issues wrt actions (at the moment just 'leave as' works). In addition some attributes aren't being displayed or posted upon submission (such as fixversions, components, etc).
Comment 5 Robert Elves CLA 2006-11-10 02:38:39 EST
Update: Reopen, resolve, close actions now working. Added fixversions and components support to editor. Affects version and a few other fields still need to be added.
Comment 6 Mik Kersten CLA 2006-11-10 16:03:34 EST
Nice!  I'll cut a dev build shortly.
Comment 7 Robert Elves CLA 2006-11-10 16:25:56 EST
Update: affects versions field added. 
Warnings:  
- Estimate field gets cleared upon submitting from the editor
- There may be other adverse effects that I'm not aware of
Comment 8 Robert Elves CLA 2006-11-10 16:46:43 EST
Created attachment 53658 [details]
mylar/context/zip

Context thus far...
Comment 9 Mik Kersten CLA 2006-11-21 19:31:21 EST
We're done with the core operations, and support for additional operations should be submitted as separate bug reports.