[ANN] JIRA Plugin 0.1.3

Just uploaded 0.1.3 to the plugin repository.

Lots of refactoring and a few changes.

The settings dialog now takes a project id rather than keyname ( you can
find this as the pid=XXXX form variable in various JIRA requests ). I'd
rather use the keyname, but theres (currently) no way to query for
projects/project ids.

Anyways, theres now two tabs, My Issues, and Outstandig. Double clicking
on the entry loads in the browser as before.

If you dont see the plugin showing on the bottom of IDEA, enable it in the
settings.

21 comments
Comment actions Permalink

I have installed it and after some hussle it does work for me.
I would say it is a great start.
Several things though:
1) you need to URLEncoder.encode the usernames and passwords, otherwise issues are not retreived when they contain spaces for example
2) we use Jira 2.3 at work and it seems like using "sorter/field=issuekey" parameter in the search seems not to work, but "sorter/field=key" does, maybe make this condfigurable?

0
Comment actions Permalink

On Sun, 25 Jan 2004 01:34:09 +0000, Eduard Letifov wrote:

Several things though:
1) you need to URLEncoder.encode the usernames and passwords, otherwise
issues are not retreived when they contain spaces for example


Just added URLEncoding of the usernames and passwords, using UTF-8.

Jira 2.3 at work and it seems like using "sorter/field=issuekey" parameter
in the search seems not to work, but "sorter/field=key" does, maybe make
this condfigurable?


Will add this in for the next release ( which also has abitrary searching
as well ). I'll set in the settings as 2.3 support, and check with
Mike/Scott which version the field actually changed in and change the
settings if need be.

Mark

0
Comment actions Permalink

On Sun, 25 Jan 2004 01:34:09 +0000, Eduard Letifov wrote:

Jira 2.3 at work and it seems like using "sorter/field=issuekey" parameter
in the search seems not to work, but "sorter/field=key" does, maybe make
this condfigurable?


Just added this in. Trying to track down one bug with the PSI OpenAPI at
the moment, once that's sorted I'll make another release.

0
Comment actions Permalink

Thanx for quick answer.
Here is another two:
1) not all links from the HTML page you open after double clicking on the issue have parameters, so concatenating them with "&os_username=..." doesn't work and produce exceptions. I guess a check if the link already contains "?" would help to determine if it should be "&os_username..." or "?os_username..."

2) some of the pages you can navigate to contain forms with POST methods. Looks like this is not handled at all and produces error pages from Jira (I guess some required parameters get lost)

BTW. This kind of plugin has been on my mind forever, is there any way I could contribute? I also have some scenarious (from what we do at work) that I think might be worth to handle, should I just post them here or somehow else?

0
Comment actions Permalink

On Sun, 25 Jan 2004 13:22:26 +0000, Eduard Letifov wrote:

1) not all links from the HTML page you open after double clicking on the
issue have parameters, so concatenating them with "&os_username=..."
doesn't work and produce exceptions. I guess a check if the link already
contains "?" would help to determine if it should be "&os_username..." or
"?os_username..."


Have fix this already. If the URL clicked on starts with the base jira
installation, I append the os_username/os_password params to the request (
bit of a hack, but seems to work ).

2) some of the pages you can navigate to contain forms with POST methods.
Looks like this is not handled at all and produces error pages from Jira
(I guess some required parameters get lost)


I'm just using the JEditorPane component for the HTML at present, and I'm
not sure what its limitations are ( I did look at Jazilla briefly, but its
a little heavy weight ). If anyone else knows of any free HTML viewer
components for java.....

BTW. This kind of plugin has been on my mind forever, is there any way I
could contribute? I also have some scenarious (from what we do at work)
that I think might be worth to handle, should I just post them here or
somehow else?


At the moment its not open, but I've had a few people ask about that as
well, for now I guess, just post your requests here ( and CC them to my
email ).

Mike's offered me cvs/jira access off Atlassian somewhere which I may take
him up on as well.

Mark


0
Comment actions Permalink

Mark,

what I meant there is: some of Jira URIs do not have parameters (like ...BrowseProject.jspa) and when you append such URIs with &os_user.... it just doesn't work. What I was suggesting is to check if the first character in what you are adding should in this case be '?' rather then '&'

the request about contribution/openness: the main problem is that when there is no access to the source to fix something like those bugs/misbehaviours one needs to go through decompile/compile/make it work/submit to you/wait/install/hopefully enjoy cycle... if it gets more open it might be just easier to make it better.

scenarios: at work we very often have our projects shared, most of the time not really working simultaniously, but sequentially... In this case having the user name configured in the project might not be a very good idea; we also use release scheduling and what is much more important is to see issues scheduled for a certain release...

I will research the HTML viewer thing. I am actually under impression that the JEditorPane should be just fine even for POST requests handling....

Unfortunately I have no idea how to CC this to your email from this forum form.

0
Comment actions Permalink

On Sun, 25 Jan 2004 22:13:54 +0000, Eduard Letifov wrote:

what I meant there is: some of Jira URIs do not have parameters (like
...BrowseProject.jspa) and when you append such URIs with &os_user.... it
just doesn't work. What I was suggesting is to check if the first
character in what you are adding should in this case be '?' rather then
'&'


Ahh right. I see what you mean here.

bugs/misbehaviours one needs to go through decompile/compile/make it
work/submit to you/wait/install/hopefully enjoy cycle... if it gets more
open it might be just easier to make it better.


nod that will come in due time I'm sure, it's only been 3 days or so
since I started :) don't be so eager :)

case having the user name configured in the project might not be a very
good idea;


The settings get stored in the .iws workspace file, which I tend to NOT
import into CVS as it causes no end of problems, other developers don't
need to care about what files I had open, and that I prefer the todo pane
on the right hand side of the screen.

we also use release scheduling and what is much more
important is to see issues scheduled for a certain release...


nod I've been having a few UI ideas for this, and other filtering ideas,
I'm looking at sidelining my annotation functionality for now as Psi is
driving me insane ( even though its one of the primary functions I wanted
in the first place ) and look at this.

I will research the HTML viewer thing. I am actually under impression
that the JEditorPane should be just fine even for POST requests
handling....


Yeh, the thing is, JEditorPane doesn't know anything about HTTP, so we
developers get to write the handling of that ( afaik ). Theres also the
matter of javascript as well.

Jira makes use of popup windows in places as well, which can't be handled
easily ( afaik ) with JEditorPane's, without effort. The idea for it is
just a quick browse of the server. I'm thinking I'll actually pass any
links off to your configured web browser, so that a decent browser does
the rest.


Unfortunately I have no idea how to CC this to your email from this
forum form.


0
Comment actions Permalink

It seems that there's a problem about handling not U.S. character sets.

org.jdom.input.JDOMParseException: Error on line 703: The entity "eacute"
was re
ferenced, but not declared.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:381)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:694)
at
com.talios.jira.feeds.AbstractFeedBuilder.buildFeed(AbstractFeedBuild
er.java:48)
at
com.talios.jira.feeds.AbstractFeedBuilder.buildFeedData(AbstractFeedB
uilder.java:59)
at
com.talios.jira.browser.JiraIssuesTableModel.channel(JiraIssuesTableM
odel.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.werx.framework.bus.SignalRunner.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:94)
at com.intellij.ide.q.a(q.java:15)
at com.intellij.ide.q.dispatchEvent(q.java:137)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: org.xml.sax.SAXParseException: The entity "eacute" was
referenced, bu
t not declared.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
... 19 more
Caused by: org.xml.sax.SAXParseException: The entity "eacute" was
referenced, bu
t not declared.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:694)
at
com.talios.jira.feeds.AbstractFeedBuilder.buildFeed(AbstractFeedBuild
er.java:48)
at
com.talios.jira.feeds.AbstractFeedBuilder.buildFeedData(AbstractFeedB
uilder.java:59)
at
com.talios.jira.browser.JiraIssuesTableModel.channel(JiraIssuesTableM
odel.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

"Mark Derricutt" <mark@talios.com> a écrit dans le message de
news:pan.2004.01.24.04.19.11.728784@talios.com...

Just uploaded 0.1.3 to the plugin repository.

>

Lots of refactoring and a few changes.

>

The settings dialog now takes a project id rather than keyname ( you can
find this as the pid=XXXX form variable in various JIRA requests ). I'd
rather use the keyname, but theres (currently) no way to query for
projects/project ids.

>

Anyways, theres now two tabs, My Issues, and Outstandig. Double clicking
on the entry loads in the browser as before.

>

If you dont see the plugin showing on the bottom of IDEA, enable it in the
settings.

>


0
Comment actions Permalink

On Mon, 26 Jan 2004 09:47:09 +0100, Regis Le Brettevillois wrote:

It seems that there's a problem about handling not U.S. character sets.

org.jdom.input.JDOMParseException: Error on line 703: The entity "eacute"
was re
ferenced, but not declared.


Ouch, I think thats more a problem with Jira spitting out invalid XML than
anything. I'll see if I can do anything with it thou...

Mark

0
Comment actions Permalink

Thanks, it will be helpful since I'm not able to get any issues due to this
problem.

Regis

"Mark Derricutt" <mark@talios.com> a écrit dans le message de
news:pan.2004.01.26.09.21.35.329029@talios.com...

On Mon, 26 Jan 2004 09:47:09 +0100, Regis Le Brettevillois wrote:

>

It seems that there's a problem about handling not U.S. character sets.

>

org.jdom.input.JDOMParseException: Error on line 703: The entity

"eacute"

was re
ferenced, but not declared.

>

Ouch, I think thats more a problem with Jira spitting out invalid XML than
anything. I'll see if I can do anything with it thou...

>

Mark

>


0
Comment actions Permalink

On Mon, 26 Jan 2004 10:56:10 +0100, Regis Le Brettevillois wrote:

Thanks, it will be helpful since I'm not able to get any issues due to
this problem.


Just uploaded 0.1.4 but didn't get a chance to look at this feed issue.

Any chance you could email me a copy of the RSS in question to
mark@talios.com - thanks.

Mark

0
Comment actions Permalink

I think I've found the problem, the rss stream contains date that are
formatted with the french locale format.
The construction seems to be an invalid XML format, even IE parser raises an
error on this piece of XML.

12/déc./03 12/déc./03 Do you see any solution? Regis "Mark Derricutt" ]]> a écrit dans le message de
news:pan.2004.01.26.11.00.30.898266@talios.com...

On Mon, 26 Jan 2004 10:56:10 +0100, Regis Le Brettevillois wrote:

>

Thanks, it will be helpful since I'm not able to get any issues due to
this problem.

>

Just uploaded 0.1.4 but didn't get a chance to look at this feed issue.

>

Any chance you could email me a copy of the RSS in question to
mark@talios.com - thanks.

>

Mark

>


0
Comment actions Permalink

I've found a workaround, I've changed the date format in the
jira_application.properties file. It works fine now.
Thanks for your help.

Regis

"Regis Le Brettevillois" <regis@libelis.com> a écrit dans le message de
news:bv32fo$ksn$1@is.intellij.net...

I think I've found the problem, the rss stream contains date that are
formatted with the french locale format.
The construction seems to be an invalid XML format, even IE parser raises

an

error on this piece of XML.

>

<created>12/déc./03</created>
<updated>12/déc./03</updated>

>

Do you see any solution?

>

Regis

>
>

"Mark Derricutt" <mark@talios.com> a écrit dans le message de
news:pan.2004.01.26.11.00.30.898266@talios.com...

On Mon, 26 Jan 2004 10:56:10 +0100, Regis Le Brettevillois wrote:

>

Thanks, it will be helpful since I'm not able to get any issues due to
this problem.

>

Just uploaded 0.1.4 but didn't get a chance to look at this feed issue.

>

Any chance you could email me a copy of the RSS in question to
mark@talios.com - thanks.

>

Mark

>

>
>


0
Comment actions Permalink

Mark,

in 0.1.4 these problems still exist in IssueBrowserPanel I beleive:
- spaces in the usernames (and assignees).
- URIs without parameters (concatenation of & rather then ?)

0
Comment actions Permalink

On Tue, 27 Jan 2004 08:53:34 +0000, Eduard Letifov wrote:

in 0.1.4 these problems still exist in IssueBrowserPanel I beleive: -
spaces in the usernames (and assignees). - URIs without parameters
(concatenation of & rather then ?)


I forgot to do the ? ( remembered that the moment I went to bed just after
uploading ). as for spaces in usernames, they should be encoded. mmm

0
Comment actions Permalink

Well as I remeber it is indeed fixed for the actual feed URIs, but not for the hyperlink press handlers in the issue browser. I am not sure about the double-click one now either. I wonder if this matter can be fixed somewhere in the very beginning, rather then for each URI you construct.

0
Comment actions Permalink

On Wed, 28 Jan 2004 21:06:36 +0000, Eduard Letifov wrote:

Well as I remeber it is indeed fixed for the actual feed URIs, but not for
the hyperlink press handlers in the issue browser. I am not sure about the
double-click one now either. I wonder if this matter can be fixed
somewhere in the very beginning, rather then for each URI you construct.


I threw up a new build before, try that.

0
Comment actions Permalink

Mark,

I just tried it. The problem is still there. Again: in every place of your code where you construct an URL by adding user name and password you have to encode both of them.

Please, please look at IssueBrowser - there are two places (double click mouse listener and hyperlink listener).

Otherwise it does look very nice. Please understand I am bugging you on those things only because there is no other way yet to close or update an issue other then double click on it, and that doesn't work still.

Ed

0
Comment actions Permalink

On Sat, 31 Jan 2004 11:35:06 +0000, Eduard Letifov wrote:

I just tried it. The problem is still there. Again: in every place of
your code where you construct an URL by adding user name and password you
have to encode both of them.


Ahh crap - I was thinking it was just the ? problem, trust me to do this
stuff when I'm half asleep.

Just uploaded 0.1.4.2 :()

0
Comment actions Permalink

So far, so good. Keep it up!

0
Comment actions Permalink

On Tue, 03 Feb 2004 22:19:06 +0000, Eduard Letifov wrote:

So far, so good. Keep it up!


If you have any suggestions, enter them in the jira project...

0

Please sign in to leave a comment.