Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTrack REST API changed, can't figure out how to rebuild the whole thing myself to get GraphViz For YouTrack working again #1

Open
chhh opened this issue May 3, 2024 · 0 comments

Comments

@chhh
Copy link

chhh commented May 3, 2024

Is it still possible to rebuild Graphviz for youtrack? I'd gladly try the needed changes myself if I could figure out how to build.

Graphviz for YouTrack doesn't work anymore, because Users API has changed:

image

The following request needs to go to HUB now (according to this docs page):

And the parameters it takes have also changed:

This query:

async function loadUsers(baseUrl: string): Promise<User[]> {
const queryParams = {
fields: 'avatarUrl,id,fullName',
};
return await httpGet<User[]>(baseUrl, YouTrackRestUrl.USERS, queryParams);
}

Needs to set fields:

fields: 'avatar,id,name',

The returned avatar is now an avatar object (docs) that has a .url property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant