JetBrains / JetBrains/YouTrackSharp

AgilesGetAsync does not correctly populate issue custom fields

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
143
Forks
105
PR merge metrics
No merged PRs in 30d

Description

I have the following code to pull agile boards, sprints and issues

```
var client = await connection.GetAuthenticatedApiClient();
var result = await client.AgilesGetAsync(fields: "name,id,owner(id,name,fullname),sprints(id,agile(name),name,start,unresolvedIssuesCount,issues(idReadable,summary,customFields(name,value)),start)");
```

## Expected behaviour

The name and value of the custom fields should be populated

## Actual behaviour

The name is populated but the value isn't.

However, if I change the fields from this

`customFields(name,value)`

to this

`customFields(name,value(id,fullName))`

The output changes from this

![image](https://user-images.githubusercontent.com/1281845/166743449-87562520-cdd5-4549-9415-5428090b9ee0.png)

to this

![image](https://user-images.githubusercontent.com/1281845/166743148-b116f0e8-5e6c-471a-8752-c95570c3488f.png)

What seems to be happening is anything with an ID or a FullName child property is populated.

However the simple properties always seem to be null.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.