I have assigned a user to an issue in YouTrack. When I request that's projects issues via YouTrackSharp, the Issue items that come back do not have their Assignee property populated.
Here is the response body:
Date: Fri, 07 Oct 2011 16:45:51 GMT
Transfer-Encoding: chunked
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
{
"issue": {
"@id": "V9-2",
"field": [
{
"@name": "voterName"
},
{
"@name": "Priority",
"value": "Normal"
},
{
"@name": "Type",
"value": "Feature"
},
{
"@name": "State",
"value": "Submitted"
},
{
"@name": "Assignee",
"value": "michael"
},
{
"@name": "Subsystem",
"value": "Scheduling"
},
{
"@name": "projectShortName",
"value": "V9"
},
{
"@name": "numberInProject",
"value": "2"
},
{
"@name": "summary",
"value": "ADD a feature to the scheduling screen for a PMT to reset the clock"
},
{
"@name": "created",
"value": "1317928586123"
},
{
"@name": "updated",
"value": "1318005246437"
},
{
"@name": "updaterName",
"value": "root"
},
{
"@name": "reporterName",
"value": "pwright"
},
{
"@name": "commentsCount",
"value": "0"
},
{
"@name": "votes",
"value": "0"
}
]
}
}
------ Test started: Assembly: YouTrackSharp.Specs.dll
YTSRP15
ยป should contain assignee (FAIL)
Test 'should contain assignee' failed:
Issues\IssueManagement.cs(67,0): at YouTrackSharp.Issues.IssueManagement.GetIssue(String issueId)
Bugs\IssueManagementBugs.cs(53,0): at YouTrackSharp.Specs.Bugs.YTSRP15.<.ctor>b__0()
0 passed, 1 failed, 0 skipped, took 1.90 seconds (Machine.Specifications 0.4.23-cf12f15).
{"@id":"V9-6","field":{"@name":"voterName"},"comment":{"@id":"63-4","@author":"wgreen","@issueId":"V9-6","@deleted":"false","@text":"Acceptance Criteria presenters will be changed to batch up changes in memory rather than submit the directly. Then the Approval workflow will be intitiated. Only after this workflow is complete will the changes be sent to the domain (and thereby the database)","@shownForIssueAuthor":"false","@created":"1318432040908","replies":null},"field":[{"@name":"Priority","value":"Normal"},{"@name":"Type","value":"Feature"},{"@name":"State","value":"Fixed"},{"@name":"Assignee","value":"michael"},{"@name":"Subsystem","value":"No subsystem"},{"@name":"Fixed in build","value":"9.30.51.222"},{"@name":"links","value":{"@type":"Depend","@role":"is required for","$":"V9-3"}},{"@name":"projectShortName","value":"V9"},{"@name":"numberInProject","value":"6"},{"@name":"summary","value":"Entering a new reference value should require an approval by an IST Engineer and/or peer"},{"@name":"created","value":"1317928959793"},{"@name":"updated","value":"1319051447324"},{"@name":"updaterName","value":"wgreen"},{"@name":"resolved","value":"1319051447317"},{"@name":"reporterName","value":"pwright"},{"@name":"commentsCount","value":"1"},{"@name":"votes","value":"0"}]}http://[servername removed]:9500/rest/project/issues/E9?max=2147483647&after=0
Here's the first result:
<issue priority="1" type="Bug" state="Closed" subsystem="Customizations" id="E9-1" projectShortName="E9" assigneeName="cussonsh" reporterName="cussonsh" updaterName="cussonsh" fixedInBuild="Next build" commentsCount="1" numberInProject="1" summary="SO Entry" description="Auto-Allocate needs to be fixed" created="1307556519592" updated="1307650686716" historyUpdated="1307650686718" resolved="1307650686716" votes="0">
<links/>
<attachments/>
<field name="ETA"/>
</issue>
I'd like to get access to the "ETA" custom field. But "AssigneeName" is stock as far as I can tell. We havent modified it.