YouTrackSharp: A .NET Client for YouTrack

On and off I’ve been working on a .NET library that is a wrapper around YouTrack ReST API’s.  If you’re not familiar with YouTrack, it’s our Web-Based Issue Management system, which is currently at version 3 and recently we announced the availability of a free version. If you like keyboard-centric tools (like for instance ReSharper), you’ll love YouTrack.

YouTrack offers quite a lot of possibilities when it comes to interacting with it. I’ve previously blogged about how we can easily create some HTML 5 graphs using nothing but the ReST API and some jQuery. Of course, we could also take advantage of this API from .NET using merely an HTTP client.

YouTrackSharp

What YouTrackSharp brings to the table is a compact interface to work with YouTrack without worrying about things like cookies, URL’s and other HTTP concerns. It abstracts all that away to provide a simple series of classes to work with YouTrack.

Here’s a sample of a command line app I just wrote to make feature logging easier for ReSharper:

var connection = new Connection("youtrack.jetbrains.net");

connection.Authenticate("username", "password");

var issueManagement = new IssueManagement(connection);

var issue = new Issue
            {
                Assignee = "ReSharperProjectManager",
                Summary = summary,
                Description = description,
                ProjectShortName = "RSRP",
                Type = "Feature"
            };


issueManagement.CreateIssue(issue);

Console.WriteLine("Feature request logged");

Currently it allows you to Create Issues, Upload Attachments, Get Issues, Apply Commands to issues as well as a bunch of tasks on Projects. I’m adding features as and when I can, so if there’s something you’d like, log it here.

How to use it

YouTrackSharp is available as a NuGet package and source code is available on GitHub. To use it, just do:

install-package YouTrackSharp

You first need to create a Connection object (providing host) and then either a IssueManagement or ProjectManagement  based on what you need to do. The classes are simple and the methods should be self explanatory. The project also comes with tests using MSpec which describe many scenarios. If you have any questions, shout!

Ruby

If you are a Ruby developer, know that Anna Zhdan, a colleague at JetBrains, has also started working on a Ruby library for YouTrack, which is available on GitHub


Posted 06-26-2011 12:25 PM by Hadi Hariri

[Advertisement]

Comments

Dave wrote re: YouTrackSharp: A .NET Client for YouTrack
on 11-01-2011 6:45 AM

Where do I find the binaries for YouTrackSharp ?

I've installed NuGet package.

Then what ?

Thiss wrote re: YouTrackSharp: A .NET Client for YouTrack
on 11-01-2011 9:10 AM

Cancel that - I fetch and built the code. Now finding my way round - looks mighty useful :-)

Alexandra wrote re: YouTrackSharp: A .NET Client for YouTrack
on 11-01-2012 8:20 PM

I think the source of the dvpleoeer's bias in favor of free dvpleoeers tools is that the market of software development tools is largely subsidized. Last year I was at a prospective customer doing a presentation about the need of aspect-oriented programming, showing how PostSharp solves their issue. The show worked great and at the end they asked if they had to pay for the software. As a consulting shop, they were not used to pay for development tools. Their main business was SAP development. SAP gives dvpleoeer tools for free, because they make money on production servers. That's logical. Applications in production are profit centers for end customers; *development* of applications is a cost center. It's natural from SAP to try to make profit on a profit center rather than on a cost center. It also makes consulting companies their friends: they don't have to pay for software, but they sell it to end customers, and take a commission on the sale.The same happens with Microsoft, and other vendors. They make money on operating systems. In order to sell their OSes, vendors need to have applications running on those OSes, so they have to create an ecosystem. It's natural that they subsidize the development tools market because it helps growing the ecosystem.The result is that software dvpleoeers are used to free software   because they are not considered the main customers of platform vendors (who are also the dominant vendors of software development tools), but they actually create value for the platform   often for free.There's an other point regarding MVPs (or whatever other vendors call them): they get free stuff because they are influencers and vendors want them to try this stuff and influence others in their choice. This has nothing in common with moral duty (around OSS), although moral arguments are often used to hide economic interests. There's no big difference in this point between our small community and international politics.

submit social bookmark wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-17-2013 9:22 AM

AvyzSV A round of applause for your blog post. Fantastic.

buy generic viagra online wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-27-2013 10:23 AM

A6FFyY Great, thanks for sharing this blog article.Really thank you! Want more.

pills for lose weight wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-31-2013 7:26 PM

PIP8I7 wow, awesome article post.Really looking forward to read more. Much obliged.

loss weight pills wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-01-2013 7:18 PM

92l1cV I cannot thank you enough for the blog article. Really Cool.

buy viagra online wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-02-2013 5:58 PM

QPQq5H Thank you for your blog.Really thank you! Cool.

buy imitrex generic wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-14-2013 3:41 PM

fbT3kF Awesome blog article. Great.

http://bestmedicineonline.info wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-15-2013 5:12 PM

N6CaRH Hey, thanks for the post. Much obliged.

buy generic cialis wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-23-2013 11:17 AM

5Mfpus Looking forward to reading more. Great post.Really thank you! Want more.

Clomiphene 50 mg wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-25-2013 5:51 AM

EwPAmD I truly appreciate this blog article.Really looking forward to read more. Awesome.

buy clomid no prescription wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-27-2013 9:03 AM

3tU4oQ Great blog post.Thanks Again. Really Great.

buy clomid no prescription wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-01-2013 7:53 AM

u2zFsW Very good article post.Really thank you! Really Cool.

buy viagra online wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-02-2013 10:50 AM

mVVIs9 I truly appreciate this article. Much obliged.

buy discount viagra online wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-02-2013 3:52 PM

Ye3G65 This is one awesome article.Really looking forward to read more. Fantastic.

bookmaring service wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-13-2013 7:51 PM

TgKjJO I appreciate you sharing this blog post. Great.

social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-15-2013 5:45 AM

HWLmJE I am so grateful for your blog post.Thanks Again. Cool.

Social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-23-2013 9:48 PM

hjQ7D3 Really informative article.Thanks Again.

buy social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-03-2013 6:59 PM

jxZpQI Thanks-a-mundo for the article.Really looking forward to read more. Much obliged.

stoners wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-05-2013 9:51 PM

Fantastic article.Thanks Again. Great.

buy social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-08-2013 3:35 AM

XIrpNu Thank you ever so for you blog article.Thanks Again. Will read on...

Social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-19-2013 7:20 PM

z70onQ Appreciate you sharing, great blog post.Really looking forward to read more. Fantastic.

Social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-28-2013 12:29 AM

5zfjoC I cannot thank you enough for the post.Thanks Again. Awesome.

digital camera guide wrote re: YouTrackSharp: A .NET Client for YouTrack
on 05-14-2013 1:33 PM

b9aGo0 I truly appreciate this article.Much thanks again. Keep writing.

modular homes upstate NY wrote re: YouTrackSharp: A .NET Client for YouTrack
on 06-05-2013 8:06 AM

z1ot1Q Muchos Gracias for your post.Really looking forward to read more. Keep writing.

social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 06-19-2013 2:28 PM

9jltIy Thanks-a-mundo for the blog post.Much thanks again. Keep writing.

social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 06-20-2013 8:17 PM

Rmqk2U Awesome post.Really thank you! Awesome.

cool news wrote re: YouTrackSharp: A .NET Client for YouTrack
on 07-09-2013 9:45 PM

S9L2d6 Thanks a lot for the blog post. Cool.

super news wrote re: YouTrackSharp: A .NET Client for YouTrack
on 07-11-2013 8:49 PM

YPyl3A I appreciate you sharing this article post.Really looking forward to read more. Really Cool.

buy cialis online cheap wrote re: YouTrackSharp: A .NET Client for YouTrack
on 07-24-2013 6:48 PM

Very neat article post.Thanks Again. Great.

hot news wrote re: YouTrackSharp: A .NET Client for YouTrack
on 07-26-2013 5:51 AM

2HNSVS A round of applause for your blog.Thanks Again. Great.

cheap social bookmarks wrote re: YouTrackSharp: A .NET Client for YouTrack
on 07-29-2013 4:10 AM

N5to78 Looking forward to reading more. Great blog.Really thank you! Fantastic.

greatest news wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-02-2013 3:17 PM

OMFsyQ Appreciate you sharing, great blog post.Really looking forward to read more. Awesome.

awesome moldavian news wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-05-2013 2:26 AM

frcNeM Muchos Gracias for your blog.Really thank you! Awesome.

Mike wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-14-2013 5:08 PM

I wish there was really a sample program available that actually showed how to use the library.  The little code snippit above is just not helping me since I can't figure out what class objects are being used in it.

Mike wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-16-2013 3:06 PM

I'm figuring out how to ues your library.  So far so good.  

Is there anyway to set the Subtask property of a "Story Task" so that it shows up under an associated Story on the Agile board?

great link buildng wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-19-2013 10:06 AM

1oGQU5 Really informative blog.Thanks Again. Cool.

awesome links for you wrote re: YouTrackSharp: A .NET Client for YouTrack
on 08-22-2013 10:05 PM

QmiHwN Appreciate you sharing, great post.Really looking forward to read more. Awesome.

best link building wrote re: YouTrackSharp: A .NET Client for YouTrack
on 09-04-2013 1:47 AM

9XM1YL Major thankies for the blog post.Really thank you! Awesome.

the best seo service wrote re: YouTrackSharp: A .NET Client for YouTrack
on 09-05-2013 11:12 AM

UOJO9G A big thank you for your blog.Really looking forward to read more. Want more.

only for 5 dollars wrote re: YouTrackSharp: A .NET Client for YouTrack
on 09-12-2013 11:34 PM

4epIwZ Fantastic blog article.Really thank you! Want more.

cheap link building wrote re: YouTrackSharp: A .NET Client for YouTrack
on 09-24-2013 9:01 AM

IstdEl Thanks for sharing, this is a fantastic article.Really thank you! Want more.

link building team wrote re: YouTrackSharp: A .NET Client for YouTrack
on 10-15-2013 6:57 AM

FLYuqd I value the post.Much thanks again. Will read on...

smashing top seo wrote re: YouTrackSharp: A .NET Client for YouTrack
on 10-24-2013 3:36 AM

oXffM3 Major thanks for the post.Really thank you! Really Great.

take a look at it! wrote re: YouTrackSharp: A .NET Client for YouTrack
on 10-31-2013 9:25 PM

ypEcET Say, you got a nice blog post.Thanks Again. Awesome.

click here wrote re: YouTrackSharp: A .NET Client for YouTrack
on 11-17-2013 12:51 PM

McVrUX Thanks for sharing, this is a fantastic article post.Really looking forward to read more. Fantastic.

check this out wrote re: YouTrackSharp: A .NET Client for YouTrack
on 11-20-2013 12:35 PM

9ER31O Major thankies for the article.Thanks Again. Really Cool.

seo service wrote re: YouTrackSharp: A .NET Client for YouTrack
on 12-15-2013 8:48 AM

98MLpp Hey, thanks for the post. Really Great.

stunning seo guys wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-08-2014 2:43 PM

CLlKZy This is one awesome blog article.Really looking forward to read more. Keep writing.

stunning seo guys wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-10-2014 4:31 AM

oidPmu I really liked your article post.Really thank you! Want more.

look at this wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-15-2014 10:52 PM

4OkvWG Thanks a lot for the blog post.Really thank you!

check it out wrote re: YouTrackSharp: A .NET Client for YouTrack
on 01-31-2014 8:56 AM

RAkOnt Enjoyed every bit of your article post.Really thank you! Awesome.

awesome things! wrote re: YouTrackSharp: A .NET Client for YouTrack
on 02-28-2014 7:30 AM

KVpAlm Major thankies for the blog article. Will read on...

best prices wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-22-2014 2:43 PM

JWtbK1 Very good post.Really looking forward to read more. Will read on...

seo for cheap wrote re: YouTrackSharp: A .NET Client for YouTrack
on 03-25-2014 7:30 PM

N0Ueiz Very informative blog post.Really looking forward to read more.

check it out wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-01-2014 9:38 AM

thA1ha Enjoyed every bit of your blog post.Thanks Again. Much obliged.

horny wrote re: YouTrackSharp: A .NET Client for YouTrack
on 04-09-2014 7:33 PM

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)