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

Bug 214039

Summary: support JIRA time units in task editor
Product: z_Archived Reporter: Dave Syer <david_syer>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mustafa.sener
Version: 2.1   
Target Milestone: 3.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 179254    

Description Dave Syer CLA 2007-12-31 08:00:58 EST
Build ID: M20071023-1652

Steps To Reproduce:
1. Enter an issue and submit it
2. Modify the estimate and submit
3. Look on the website and the estimate was not changed


More information:
Comment 1 Eugene Kuleshov CLA 2007-12-31 16:13:19 EST
Dave, if I am not mistaken, current implementation is only reading estimates from the JIRA server. So, as a workaround you could change estimates from the web UI.
Comment 2 Steffen Pingel CLA 2007-12-31 16:18:06 EST
Dave, are you setting to the estimated time on the planning tab? All information on that tab is currently only used locally for personal planning and not synchronized with the repository.
Comment 3 Eugene Kuleshov CLA 2007-12-31 17:03:56 EST
Actually I was wrong, so as Steffen. If JIRA returns "Estimate" field, it is being shown in the Attributes section on JIRA tab and I just tested that it is synchronized properly in both directions. However that value is not linked with local estimate on Planning tab, I probably mixed it with the "Due Date" field.
Comment 4 Dave Syer CLA 2008-01-01 04:46:29 EST
The field is read only for me: it doesn't synchronize back to the server.  Sometimes it looks like it has updated in Eclipse but when you look on the server it hasn't.  Part of the problem might be the weird rules about time units that JIRA uses.
Comment 5 Eugene Kuleshov CLA 2008-01-01 13:55:43 EST
Dave, what JIRA version you are using and does estimate field appear on the "edit" screen in the web UI for your account? Like I said, I tested it (with JIRA 3.11) and it does work as expected. Also note that Mylyn JIRA connector currently expect value in minutes without any suffixes (30 = 30m, 60 = 1h, etc)
Comment 6 Dave Syer CLA 2008-01-02 04:28:04 EST
I'm using Mylyn 2.2 and JIRA 3.11.

I think what you are saying is true - it works if you do the estimates in minutes.  But JIRA accepts input like "2d" for "2 days", and Mylyn turns that into garbage.  Who wants to compute the number of minutes in a day every time they update an issue?
Comment 7 Eugene Kuleshov CLA 2008-01-02 11:03:06 EST
Dave, JIRA remote API returns estimate value in minutes and only accept value sent back in minutes. Right now there are no special rules for formatting or converting any fields in JIRA connector, but they can be added to allow special values similar to the web UI. It is bit confusing now because your original request is not reflecting such requirement and because as you confirmed estimate synchronization does work. It may make sense to resolve this issue as WORKSFORME or INVALID and create a new one about special field editor for the estimate value.
Comment 8 Mik Kersten CLA 2008-01-02 15:21:01 EST
Steffen: please consider for 2.3.  Marking as P4 since your 2.3 list may be too full.
Comment 9 Eugene Kuleshov CLA 2008-01-31 11:04:23 EST
*** Bug 217273 has been marked as a duplicate of this bug. ***
Comment 10 Steffen Pingel CLA 2008-04-02 00:54:39 EDT
This has been implemented as part of bug 221965 . Estimates can now be set using the JIRA time format, e.g. "1d 2h 3m".