Is it possible to access Charisma programmatically?
Hi All
I was just wondering if it was possible to access Charisma programmatically? I noticed that there is a jetbrains exception reporter which manages to send exceptions into charisma so now I'm wondering if there is a possiblity for my own applications to do the same thing to my local version of charisma? If so then I'd like to know where to find the API description / docs / suggestions.
Thanks
Patrick
Please sign in to leave a comment.
Hi, Patrick!
Charisma has REST API, but it's not documented yet.
Here is sample java code for posting issue into charisma. It uses jakarta http client.
Hi Vadim
Cool thanks for the example. I will have to have a play with that :-)
Regards
Patrick
When using the REST are developers posting to their own instance of YouTrack or are they using the JetBrains Instance ?
Hi again,
Url for get Issue by ID:
http://localhost:8181/youtrack/rest/issue/byid/XX-1
Now, I'm still looking for how to filter issues.
Greets
It depends on URL parameter of PostMethod constructor. If it points to developers own instance of YouTrack it will post an issue to her own tracker, if it points to JetBrains instance it will post to our tracker.
Get issues by query
http://localhost:8181/youtrack/rest/project/issues/XX?filter=<query here>
Hello Hans,
works for me - http://localhost:8081/rest/project/issues/YP?filter=state:%20Open
I think you are not removing "youtrack" from the Maxim's example:
- looks like it's the virtual directory where he has installed YouTrack (instead of in the root as I did, and probably you too). It also took me a while to figure this out :-)
Hope that helps.
Alexey
my 2 cents: for non-Java implementations, you have to keep in mind that you should reuse the cookie returned by login POST in the following requests. See more details here.