Bug 262799 - add ability to log work in Jira
Summary: add ability to log work in Jira
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P2 enhancement with 8 votes (vote)
Target Milestone: 3.2   Edit
Assignee: Thomas Ehrnhoefer CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2009-01-28 12:53 EST by Jonathan Doklovic CLA
Modified: 2009-05-06 17:15 EDT (History)
5 users (show)

See Also:


Attachments
patch (29.22 KB, patch)
2009-05-04 18:21 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (20.53 KB, application/octet-stream)
2009-05-04 18:21 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch (15.96 KB, patch)
2009-05-04 19:56 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (25.17 KB, application/octet-stream)
2009-05-04 19:56 EDT, Thomas Ehrnhoefer CLA
no flags Details
Patch (8.36 KB, patch)
2009-05-05 21:09 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (68.73 KB, application/octet-stream)
2009-05-05 21:09 EDT, Thomas Ehrnhoefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Doklovic CLA 2009-01-28 12:53:29 EST
Currently, mylyn tracks your elapsed time spent, and the Jira connector displays the time spent (from the jira server) in the attributes table.

However, there doesn't seem to be a way to actually log the time spent back into jira from mylyn, and so the user has to drop out to a web browser and enter the time manually.

This should be integrated on the jira screen.
Comment 1 Duncan Alexander CLA 2009-02-10 09:51:49 EST
Is this not the same as bug 214040 which is marked as FIXED in 3.1 ?
Comment 2 Steffen Pingel CLA 2009-02-10 12:11:38 EST
Bug 214040 requested to display work log records in the task editor which is now supported whereas this bug is about adding new work log records.
Comment 3 Duncan Alexander CLA 2009-02-11 03:46:25 EST
Bug 214040 does state "Mylyn keeps track of the time I spend on the issue, but it does not update the worklog in JIRA"

Sounds like the same issue. 
Comment 4 Jonathan Doklovic CLA 2009-02-11 09:47:02 EST
The comment at the end of issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=214040 states: 

"Functionality has been added to display the work log in a table in the task editor when JIRA 3.12 or later is used."

The fix does not include the ability to actually post the time spent to the work log in Jira.

This issue is a request to add the function to post the elapsed time to Jira as a work log entry.
Comment 5 Duncan Alexander CLA 2009-02-11 10:52:39 EST
>>"This issue is a request to add the function to post the elapsed time to Jira as
a work log entry."

...which sounds very like...

"Mylyn keeps track of the time I spend on the issue, but it does not update the worklog in JIRA"


...which came from bug 214040.

Comment 6 Steffen Pingel CLA 2009-02-11 15:31:47 EST
Duncan, sometimes bug reports request multiple features so we end up splitting them into more than one task. The summary is usually the most current description of a task. In this case resolved the other bug since part of the feature was implemented and will be released with the next version while the remaining work is still pending and now tracked on this bug.
Comment 7 Paris Apostolopoulos CLA 2009-04-14 06:18:05 EDT
+1 vote for me for the part of manually logging the work hours. Many thanks!
Comment 8 Thomas Ehrnhoefer CLA 2009-05-04 18:21:15 EDT
Created attachment 134325 [details]
patch

Here is my first shot at it...
Comment 9 Thomas Ehrnhoefer CLA 2009-05-04 18:21:19 EDT
Created attachment 134326 [details]
mylyn/context/zip
Comment 10 Steffen Pingel CLA 2009-05-04 18:56:55 EDT
That looks good. Can you split out the validation code and create another bug for that with a test case?
Comment 11 Thomas Ehrnhoefer CLA 2009-05-04 19:43:25 EDT
274914: Worklog: validate fields (Estimate, TimeSpent)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=274914
Comment 12 Thomas Ehrnhoefer CLA 2009-05-04 19:56:12 EDT
Created attachment 134351 [details]
patch
Comment 13 Thomas Ehrnhoefer CLA 2009-05-04 19:56:17 EDT
Created attachment 134352 [details]
mylyn/context/zip
Comment 14 Steffen Pingel CLA 2009-05-05 17:10:53 EDT
Great stuff, Thomas! I have applied the patch.
Comment 15 Shawn Minto CLA 2009-05-05 18:08:28 EDT
Reopening since in WorkLogPart the DateTime.setTime not available in 3.3.
Comment 16 Steffen Pingel CLA 2009-05-05 18:24:25 EDT
Thomas, can you check that the estimate doesn't change if "Leave estimate" is selected. It would be great if you could add a test case for that.

Also make sure that the adding of work logs is not enabled for JIRA versions smaller than 3.12.
Comment 17 Thomas Ehrnhoefer CLA 2009-05-05 21:09:36 EDT
Created attachment 134553 [details]
Patch

Phew, good find about the "leave estimate", I totally forgot about that.

This patch now addresses the e3.3 issue with the DateTime widget (thanks Shawn for reporting that one), makes sure the estimate gets changed or left alone,based on the user selection (and includes a test case for that), as well as makes sure only JIRA 3.12 or higher (with worklog support enabled) gets used .
Comment 18 Thomas Ehrnhoefer CLA 2009-05-05 21:09:42 EDT
Created attachment 134554 [details]
mylyn/context/zip
Comment 19 Steffen Pingel CLA 2009-05-06 17:15:15 EDT
Thanks Thomas! I have applied the patch. 

I removed the check in JiraClient since it looks like the editor already excludes the work log part for version < 3.12. I think it's better if submission fails in case the functionality is used with older versions.