Community
Participate
Working Groups
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.
Is this not the same as bug 214040 which is marked as FIXED in 3.1 ?
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.
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.
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.
>>"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.
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.
+1 vote for me for the part of manually logging the work hours. Many thanks!
Created attachment 134325 [details] patch Here is my first shot at it...
Created attachment 134326 [details] mylyn/context/zip
That looks good. Can you split out the validation code and create another bug for that with a test case?
274914: Worklog: validate fields (Estimate, TimeSpent) https://bugs.eclipse.org/bugs/show_bug.cgi?id=274914
Created attachment 134351 [details] patch
Created attachment 134352 [details] mylyn/context/zip
Great stuff, Thomas! I have applied the patch.
Reopening since in WorkLogPart the DateTime.setTime not available in 3.3.
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.
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 .
Created attachment 134554 [details] mylyn/context/zip
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.