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
7
votes
1 answer

Axios post unauthorized error yet curl works

Trying to hit YouTrack's API via axios but I am receiving an unauthorized error, while same params via curl work. curl: curl -X GET \ 'https:///api/issues' \ -H 'Authorization: Bearer perm:' \ -H 'Accept: application/json'…
Arthur
  • 2,622
  • 4
  • 28
  • 46
6
votes
3 answers

YouTrack Query: how to get issues from last 10 days?

I'd like to get from -10 days to today with YouTrack Query but official document seems not supported. doc: https://www.jetbrains.com/help/youtrack/standalone/Search-and-Command-Attributes.html#relative-date-parameters In case of Jira, it supports…
Youngjae
  • 24,352
  • 18
  • 113
  • 198
4
votes
0 answers

YouTrack REST API - assign user to task?

it is possible to assign a task to a user by YouTrack REST API? I did not find this information in the documentation. Ok I found a solution: Apply Command to an Issue
3
votes
1 answer

Exception when checking if an issue field becomes "In Progress" with workflow

My issue fields have a State and an option called In Progress So I wrote a Youtrack Workflow that launches a http post to my discord channel when an issue becomes "In Progress". Here is the JavaScript code for that: var entities =…
xetra11
  • 7,671
  • 14
  • 84
  • 159
2
votes
1 answer

Create a (subtask) link to an existing issue in YouTrack

I'm writing an Action to create default tasks for a user story. This is how far I got: var workflow = require('@jetbrains/youtrack-scripting-api/workflow'); var entities = require('@jetbrains/youtrack-scripting-api/entities'); exports.rule =…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
2
votes
1 answer

Is there a way to filter with the new YouTrack REST API?

I have been tasked to build a custom interface for Youtrack and am using the new YouTrack APIs - docs here https://www.jetbrains.com/help/youtrack/standalone/youtrack-rest-api-reference.html. I am querying for a full list of issues which returns…
Brent
  • 21
  • 1
  • 4
1
vote
1 answer

How to write such curl request in golang for youtrack rest api?

I am writing golang client with youtrack REST I have written the most most path of API. But faced problem with attaching files to an Issue. So, here there is small and good doc…
wecandoit
  • 23
  • 1
  • 5
1
vote
1 answer

Is there a way to create a link that will execute a YouTrack command such as clone issue?

The "Generate Issue Template URL" functionality is clunky, and I'm try to work around it. I have a webpage outside of YouTrack with a list of links containing different templates for ticket writers. Any time a template changes we have to click the…
1
vote
0 answers

Youtrack Rest API add attachments to comment

How add attachment to issues's comment wia Rest API? I try this: encoderrrr=MultipartEncoder(fields={ 'file':('tets.jpg', open('./project/MAC/MAC-338/screenshot-1.png','rb')) }) auth_login,auth_password ='USER','PASSWORD' headers =…
1
vote
1 answer

Default text in description field of new issue in YouTrack

Can a template with default text be created when opening new issues in the online YouTrack ? The standalone has…
Guy
  • 96
  • 7
1
vote
1 answer

YouTrack REST API - set default value on field

Using YouTrack API, is it possible to set the default value on a project's field? For example, as part of a new-project automation routine I need to set the default value of the "Type" field from "Bug" to "Task".
JoshuaDavid
  • 8,861
  • 8
  • 47
  • 55
0
votes
1 answer

Set custom field value in YouTrack custom workflow

I'm trying to automatically update an estimated issue duration using a numeric field called 'Estimate'. I can access the start date and due date and take their difference in days (the intended estimate), but I am not able to update the Estimate…
Onofog
  • 443
  • 3
  • 15
0
votes
0 answers

YouTrack: How to set a text field to "cannot be empty"?

I have declared a field of type Change as can be empty. If the state Solved has been reached, Change should be set to cannot be empty. How can I best implement this? const entities =…
0
votes
1 answer

Youtrack API doesn't return populated reporter on tickets

I am attempting to query tickets from the API, using: /issues?fields=idReadable,summary,reporter,created&query=project:$project&$top=100 This results in a list of tickets like: {"idReadable":"INF-6810","summary":"xxx: Add an SSL cert for this domain…
user717847
  • 695
  • 1
  • 6
  • 16
0
votes
1 answer

Youtrack Query : how to get issues where story point field was updated

I'd like to get all issues with a specific tag updated date with YouTrack Query, but I can't find a way to do this in the official doc :…
1
2 3