Questions tagged [youtrack-api]

YouTrack is an issue-tracker designed for software development teams. It serves as a one-stop shop for tracking daily tasks and bugs, planning sprints and releases, and managing agile projects. It’s available in the cloud or as a self-hosted standalone version.

YouTrack provides powerful functionality that helps you perform various actions programmatically via its RESTful API, including:

  • Importing issues from your current bug tracking system — for smoother migration to YouTrack.
  • Creating, modifying, and performing other operations programmatically — so you can seamlessly integrate YouTrack into your environment. For example, via automated issue submission from third-party applications.
  • Manipulating projects, users, groups, roles, issue link types, and custom attributes.

For more information about this topic visit the official documentation: YouTrack REST API

32 questions
0
votes
1 answer

YouTrack - Historical issue snapshots

The new YouTrack API is missing the old Issue history /rest/issue/{issue}/history end-point which our code heavily depends on. There's only the Issue activities /api/issues/{issueID}/activities end-point, which returns only delta differences between…
antoninkriz
  • 966
  • 4
  • 18
  • 36
0
votes
1 answer

Is there a way to access raw data stored in Youtrack?

In Youtrack reports, you can view the issues by two fields using creation date as y-axis and any other field as x-axis. But when you do that like in this graph you view number of issues that are currently in the state stated in x-axis. For example,…
Yasir Aydın
  • 5
  • 1
  • 2
0
votes
1 answer

Is there a way to create a project via Youtrack API with a non-standard template?

I'm trying to create a new project with the Youtrack API. And now I want to create a project with a template that I've created by myself on Youtrack. The API have only "scrum" and "kanban" as possible template parameters. Is there a way to create a…
hacker20
  • 5
  • 2
0
votes
1 answer

Hot to add version to your youtrack project using one request

Some context I am currently working on renewing legacy youtrack api on new one. Thing that bothers me is how to add a new version to your project. To do so you have to send https://youtrack/api/admin/customFieldSettings/bundles/version POST request…
0
votes
1 answer

Why can't I access 'User story' as a type?

I have a (correctly working) workflow script starting with this guard function: var entities = require('@jetbrains/youtrack-scripting-api/entities'); exports.rule = entities.Issue.action({ title: 'Create default subtasks', command:…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
0
votes
1 answer

how to use getHours() in youtrack workflow?

I am new to Youtrack Workflow. I am trying to create a new workflow for which I require hours from the current date-time. I am using new Date().getHours() but it's not returning proper value. say for example my current time is Fri Jun 12 2020…
0
votes
1 answer

Workflow Error - One or More Projects require additional setup

I've created a workflow in YouTrack with one rule. However, on the Workflow screen, next to the name of my Workflow there is a box that says in red text, 'requires setup'. When I hover over this it says, 'One or more projects require additional…
CodeLearner
  • 389
  • 2
  • 6
  • 14
0
votes
2 answers

How to get a list of users who logged in after a certain date via YouTrack API?

I need to get a list of users who logged in within the last 2 years. YouTrack Web interface shows me 141 users on /admin/hub/users?query=lastAccess(after:%202018-01-01) But when I try to get the same list via API, I get an empty array. What am I…
0
votes
2 answers

Youtrack check if user has permissions

I'm trying to create a Youtrack workflow where only a specific role is allowed to edit the Kanban state to ready-to-pull when the current issue is in backlog. I wasn't quite able to get it correctly working, keeps throwing exceptions but I'm unable…
killstreet
  • 1,251
  • 2
  • 15
  • 37
0
votes
1 answer

Convert global issue ID to project issue ID

When I query the API api/issues/ for issues with fields="id", I get back an array of issues similiar to this: [ { "id": "2-120" } ] This works for further calls because 2-120 can be used in calls to /api/issues/{id}. However, I also need to…
Jonas Dellinger
  • 1,294
  • 9
  • 19
0
votes
1 answer

YouTrack REST API returns only subset of all users

Since version 2018.3, YouTrack has published a new API for administrating the system. One example of a new endpoint is /api/admin/users/ which is supposed to return the collection of users in the YouTrack instance, with a wide variety of fields…
fuglede
  • 17,388
  • 2
  • 54
  • 99
0
votes
1 answer

How to create new sprint in Youtrack Workflow?

There is a guide to create workflow, but honestly not so helpful. https://www.jetbrains.com/help/youtrack/standalone/Workflow-Guide.html It creates issue entity but no sprint. I can't find it, how can I add properties (date-range, name, board) to…
Eleanor
  • 358
  • 5
  • 24
0
votes
1 answer

Search YouTrack independant of installation language

I'm writing a tool, that fetches the issues on which a user has spent some time within the last week, and displays the spent time for each day and issue as a summary, so that the user knows, where he might have forgotten to book time. In YouTrack…
Patrick
  • 133
  • 7
0
votes
2 answers

Apply Command to String-type custom fields with YouTrack Rest API

and thanks for looking! I have an instance of YouTrack with several custom fields, some of which are String-type. I'm implementing a module to create a new issue via the YouTrack REST API's PUT request, and then updating its fields with…
0
votes
2 answers

How to get all users by project on Youtrack rest api?

I can't get users by project or by filter on YouTrack REST API; I wrote the following code: var login = "mylogin"; var password = "mypassword"; (async function getAllUserByProject(login, password, project) { var url =…