Jira status
After my last post I thought it might be also helpful to publish how many open jira tickets I have to my skype status.
You can get each jira search result also as a rss feed. Your browser does indicate the link to the result as rss. This url might look something like:
http://jira.example.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?&&resolution=-1&assigneeSelect=specificuser&assignee=leo.buettiker&sorter/field=priority&sorter/order=DESC&tempMax=100&reset=true&decorator=none
To call this url, even if you have no valid session, you might add your user credentials at the end. This looks like:
&os_username=$username&os_password=$password
You could now use a xml or rss parser to interprete the returned feed. But for my result even that is too much, I only will count how many items in the feed are. The php snippet to do this will look like:
$jiraRss = file_get_contents($url); $jiraCount = substr_count($jiraRss,'- <item>');
$jiraMessage = $jiraCount?" and $jiraCount open Jira Issues":"";
There might be a lot of other cool usecases you can simply implement (ticket you currently work on, Tickets closed int the last week, etc.). It's just a little bit sad that there is no REST API for Skype which would be make it easier to change the status between platforms.
comments
add a comment
The Trackback URL to this comment is:
http://leo.freeflux.net/blog/plugin=trackback(2726).xml
This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!





