Cant return customFields

Hi,

I am having problem with returning custom fields while using YouTrackSharp method " AdminProjectsIssuesGetAsync".

CustomFields fields is null and also "Begin date".Please see code below.

var res = await client.AdminProjectsIssuesGetAsync("0-6", customFields: "Begin date", fields: "summary,id,description,reporter(fullName)", top: 3);

Returning regular fields works fine.

Thank you in advance.

Best regards,

Boris Bajic


Please 

0
1 comment
Hello,

I'm Lena from the YouTrack Team.

The `customFields` parameter is designed to filter the fields and show only the ones with a specified name. It means that you still need to define the correct fields query. The correct execution will look as follows:

```
var res = await client.AdminProjectsIssuesGetAsync("0-6", customFields: "Begin date", fields: "summary,id,description,reporter(fullName),customFields($type,id,name,value($type,id,name))", top: 3);
```
0

Please sign in to leave a comment.