Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; pl; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13 GTB5 Build Identifier: Currently if you edit a JIRA task and only edit a comment the whole JIRA issue gets updated - that causes some custom fields to be reset (check https://bugs.eclipse.org/bugs/show_bug.cgi?id=255854). JIRA has a nice API for adding only a comment and I think it would be right to use it in this scenario - it will probably improve performance, will be a good temporary workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=255854. Reproducible: Always
Created attachment 146273 [details] Simple fix for this
Looks good. Can you add a null check for changedAttributes? It's legal to pass null for it if the list of changed attributes is not known. Can you also add a test case to JiraTaskDataHandlerTest that uses the guest account which has limited privileges and should not be allowed to edit issues? As a side it would be great if you could attach contexts with patches.
*** Bug 213528 has been marked as a duplicate of this bug. ***
Created attachment 146369 [details] Added null check Not going to write tests until I have access to your JIRA test server - please provide me with proper credentials.
Created attachment 146370 [details] mylyn/context/zip
Created attachment 146381 [details] More sophisticated handling of changes Please ignore my previous patch - changes for other issue also were attached. Here's another patch with more sophisticated changes handling - in addition if only asignee was changed use JIRA assignIssueTo action.
Created attachment 146382 [details] mylyn/context/zip
Sounds great. I'll look at it once it includes a test case. Here are the instructions for running the test suite: http://wiki.eclipse.org/Mylyn_Contributor_Reference#JUnit_tests
Steffen I need your help here as I don't have admin permission for JIRA test server. I need a project with a custom permission scheme - user should be able to create issues, assign them but not edit them. This will ensure that re-assigning doesn't need edit permission. Can you configure this for me?
No problem Pawel. I will look into this.
Pawel, I created the following: * New group "read-only" * new user (part of that and only that group) called "read-only@mylyn.eclipse.org" (same password as tests@m.e.o) * added this new group in the permission scheme to "Create Issues" and "Assign Issues" Is that what you were looking for?
*** Bug 214971 has been marked as a duplicate of this bug. ***
Created attachment 147685 [details] Additional tests
I get a compile error when I apply the patch. Can you make a single patch with all changes including o.e.m.context.tests and the jira test cases?
Created attachment 147886 [details] All changes in one patch against the HEAD Thanks Steffen. Here's the patch with everything inside. Hope it will compile smoothly. Cheers, Pawel
Thanks. Great patch! I have applied it with minor modifications to remove some code duplication.
Thank you Steffen.