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

Bug 317870

Summary: Provide a way for accessing common task attributes (e.g. assigned to)
Product: z_Archived Reporter: Kilian Matt <kilian.matt>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: mario.bernhart, steffen.pingel
Version: unspecifiedKeywords: api
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Junit Testcase and small bugfix none

Description Kilian Matt CLA 2010-06-24 14:11:50 EDT
Currently there is no method for programmatically assigning a task to another person, instead task repository specific repository names have to be used.
Comment 1 Steffen Pingel CLA 2010-06-24 14:28:05 EDT
This is currently supported is through setting the value of the corresponding task attribute, i.e. TaskAttribute.USER_ASSIGNED in this case. Could you provide more details on your particular use case for this api? How would you expect the api to work?
Comment 2 Kilian Matt CLA 2010-06-24 17:50:11 EDT
Created attachment 172692 [details]
Junit Testcase and small bugfix

I've attached a patch with a testcase, which tries to access the Bugzilla specific ASSIGNED_TO attribute and the mapped USER_ASSIGNED attribute. The former suceeds, the later fails.
Also there is a small bugfix for the BugzillaFixture which fixes a NPE for me.
Comment 3 Kilian Matt CLA 2010-06-29 02:51:49 EDT
Ok I forgot to actually use the mapped attribute, so it works and should be safe to close this bug.