You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Arnaud HERITIER <ah...@gmail.com> on 2008/12/24 07:46:56 UTC

Re: jira swizzle and attachments

Hi,


  For the API change I have also to open in issue at Atlassian
  http://jira.codehaus.org/browse/SWIZZLE-37

  I patched also testcases.
  There were issues with tests on dates (and some other things).
  http://jira.codehaus.org/browse/SWIZZLE-38

  Finally I fixed/improved the support to read custom fields
  http://jira.codehaus.org/browse/SWIZZLE-39

  Those 3 patches are included in the swizzle patch used to generate our
reports on issues for maven its plugins

  I'll try to apply them today

arnaud

On Wed, Dec 24, 2008 at 5:41 AM, Jason van Zyl <jv...@sonatype.com> wrote:

> Code like this does not work:
>
>         Project project = *jira*.getProject( "MNGECLIPSE" );
>
> Is it expected to?
>
> On 23-Dec-08, at 11:31 PM, David Blevins wrote:
>
> Arnaud just fixed that; the jira api did change recently.  Hooked him up
> with commit.
>
> Thanks again Arnaud!
>
> -David
>
> On Dec 23, 2008, at 7:57 PM, Jason van Zyl wrote:
>
> Is trunk working?
>
>
> I'm getting test failures and messages like this:
>
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.201 sec
> <<< FAILURE!
>
> testAttachment(org.codehaus.plexus.swizzle.JiraReporterTest)  Time elapsed:
> 0.164 sec  <<< ERROR!
>
> java.lang.RuntimeException: org.apache.xmlrpc.XmlRpcException:
> java.lang.NoSuchMethodException:
> com.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService.getProjects(java.lang.String)
>
> at org.codehaus.swizzle.jira.Jira.exec(Jira.java:598)
>
> at org.codehaus.swizzle.jira.Jira.cache(Jira.java:565)
>
> at org.codehaus.swizzle.jira.Jira.cachedMap(Jira.java:549)
>
> at org.codehaus.swizzle.jira.Jira.getProject(Jira.java:259)
>
> at
> org.codehaus.plexus.swizzle.JiraIssueSubmitter.submitIssue(JiraIssueSubmitter.java:56)
>
> at
> org.codehaus.plexus.swizzle.JiraReporterTest.testAttachment(JiraReporterTest.java:54)
>
> Caused by: org.apache.xmlrpc.XmlRpcException:
> java.lang.NoSuchMethodException:
> com.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService.getProjects(java.lang.String)
>
> at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
>
> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
>
> at org.codehaus.swizzle.jira.Jira.exec(Jira.java:596)
>
> ... 31 more
>
>
> I can't get any projects.
>
>
> On 23-Dec-08, at 1:53 PM, David Blevins wrote:
>
>
> Go for it.
>
>
> -David
>
>
> On Dec 23, 2008, at 10:46 AM, Jason van Zyl wrote:
>
>
> Do you mind if I add some normal URL support for attaching issues? I was
> just going to use this here:
>
>
>
> http://confluence.atlassian.com/display/JIRACOM/Automating+JIRA+operations+via+wget
>
>
> On 23-Dec-08, at 12:59 PM, David Blevins wrote:
>
>
> Jira doesn't have an api for submitting attachments -- at least not last
> time I checked.  I was only able to get the attachment "read" support in
> there via web scraping.
>
>
> -David
>
>
> On Dec 23, 2008, at 9:24 AM, Jason van Zyl wrote:
>
>
> Do you know if submitting attachments works?
>
>
> Thanks,
>
>
> Jason
>
>
> ----------------------------------------------------------
>
> Jason van Zyl
>
> Founder,  Apache Maven
>
> jason at sonatype dot com
>
> ----------------------------------------------------------
>
>
> Our achievements speak for themselves. What we have to keep track
>
> of are our failures, discouragements and doubts. We tend to forget
>
> the past difficulties, the many false starts, and the painful
>
> groping. We see our past achievements as the end result of a
>
> clean forward thrust, and our present difficulties as
>
> signs of decline and decay.
>
>
> -- Eric Hoffer, Reflections on the Human Condition
>
>
>
>
>
> Thanks,
>
>
> Jason
>
>
> ----------------------------------------------------------
>
> Jason van Zyl
>
> Founder,  Apache Maven
>
> jason at sonatype dot com
>
> ----------------------------------------------------------
>
>
> You are never dedicated to something you have complete confidence in.
>
> No one is fanatically shouting that the sun is going to rise tomorrow.
>
> They know it is going to rise tomorrow. When people are fanatically
>
> dedicated to political or religious faiths or any other kind of
>
> dogmas or goals, it's always because these dogmas or
>
> goals are in doubt.
>
>
> -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance
>
>
>
>
>
> Thanks,
>
>
> Jason
>
>
> ----------------------------------------------------------
>
> Jason van Zyl
>
> Founder,  Apache Maven
>
> jason at sonatype dot com
>
> ----------------------------------------------------------
>
>
> Three people can keep a secret provided two of them are dead.
>
>
> -- Unknown
>
>
>
>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
> Three people can keep a secret provided two of them are dead.
>
>  -- Unknown
>
>
>


-- 
..........................................................
Arnaud HERITIER
12 guidelines to boost your productivity with a Java software factory -
http://tinyurl.com/56s9tw
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

Re: jira swizzle and attachments

Posted by Arnaud HERITIER <ah...@gmail.com>.
Sorry maven guys, It was for this mailing list.

cheers

Arnaud

On Wed, Dec 24, 2008 at 7:46 AM, Arnaud HERITIER <ah...@gmail.com>wrote:

> Hi,
>
>
>   For the API change I have also to open in issue at Atlassian
>   http://jira.codehaus.org/browse/SWIZZLE-37
>
>   I patched also testcases.
>   There were issues with tests on dates (and some other things).
>   http://jira.codehaus.org/browse/SWIZZLE-38
>
>   Finally I fixed/improved the support to read custom fields
>   http://jira.codehaus.org/browse/SWIZZLE-39
>
>   Those 3 patches are included in the swizzle patch used to generate our
> reports on issues for maven its plugins
>
>   I'll try to apply them today
>
> arnaud
>
>
> On Wed, Dec 24, 2008 at 5:41 AM, Jason van Zyl <jv...@sonatype.com>wrote:
>
>> Code like this does not work:
>>
>>         Project project = *jira*.getProject( "MNGECLIPSE" );
>>
>> Is it expected to?
>>
>> On 23-Dec-08, at 11:31 PM, David Blevins wrote:
>>
>> Arnaud just fixed that; the jira api did change recently.  Hooked him up
>> with commit.
>>
>> Thanks again Arnaud!
>>
>> -David
>>
>> On Dec 23, 2008, at 7:57 PM, Jason van Zyl wrote:
>>
>> Is trunk working?
>>
>>
>> I'm getting test failures and messages like this:
>>
>>
>> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.201 sec
>> <<< FAILURE!
>>
>> testAttachment(org.codehaus.plexus.swizzle.JiraReporterTest)  Time
>> elapsed: 0.164 sec  <<< ERROR!
>>
>> java.lang.RuntimeException: org.apache.xmlrpc.XmlRpcException:
>> java.lang.NoSuchMethodException:
>> com.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService.getProjects(java.lang.String)
>>
>> at org.codehaus.swizzle.jira.Jira.exec(Jira.java:598)
>>
>> at org.codehaus.swizzle.jira.Jira.cache(Jira.java:565)
>>
>> at org.codehaus.swizzle.jira.Jira.cachedMap(Jira.java:549)
>>
>> at org.codehaus.swizzle.jira.Jira.getProject(Jira.java:259)
>>
>> at
>> org.codehaus.plexus.swizzle.JiraIssueSubmitter.submitIssue(JiraIssueSubmitter.java:56)
>>
>> at
>> org.codehaus.plexus.swizzle.JiraReporterTest.testAttachment(JiraReporterTest.java:54)
>>
>> Caused by: org.apache.xmlrpc.XmlRpcException:
>> java.lang.NoSuchMethodException:
>> com.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService.getProjects(java.lang.String)
>>
>>  at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
>>
>> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
>>
>> at org.codehaus.swizzle.jira.Jira.exec(Jira.java:596)
>>
>> ... 31 more
>>
>>
>> I can't get any projects.
>>
>>
>> On 23-Dec-08, at 1:53 PM, David Blevins wrote:
>>
>>
>> Go for it.
>>
>>
>> -David
>>
>>
>> On Dec 23, 2008, at 10:46 AM, Jason van Zyl wrote:
>>
>>
>> Do you mind if I add some normal URL support for attaching issues? I was
>> just going to use this here:
>>
>>
>>
>> http://confluence.atlassian.com/display/JIRACOM/Automating+JIRA+operations+via+wget
>>
>>
>> On 23-Dec-08, at 12:59 PM, David Blevins wrote:
>>
>>
>> Jira doesn't have an api for submitting attachments -- at least not last
>> time I checked.  I was only able to get the attachment "read" support in
>> there via web scraping.
>>
>>
>> -David
>>
>>
>> On Dec 23, 2008, at 9:24 AM, Jason van Zyl wrote:
>>
>>
>> Do you know if submitting attachments works?
>>
>>
>> Thanks,
>>
>>
>> Jason
>>
>>
>> ----------------------------------------------------------
>>
>> Jason van Zyl
>>
>> Founder,  Apache Maven
>>
>> jason at sonatype dot com
>>
>> ----------------------------------------------------------
>>
>>
>> Our achievements speak for themselves. What we have to keep track
>>
>> of are our failures, discouragements and doubts. We tend to forget
>>
>> the past difficulties, the many false starts, and the painful
>>
>> groping. We see our past achievements as the end result of a
>>
>> clean forward thrust, and our present difficulties as
>>
>> signs of decline and decay.
>>
>>
>> -- Eric Hoffer, Reflections on the Human Condition
>>
>>
>>
>>
>>
>> Thanks,
>>
>>
>> Jason
>>
>>
>> ----------------------------------------------------------
>>
>> Jason van Zyl
>>
>> Founder,  Apache Maven
>>
>> jason at sonatype dot com
>>
>> ----------------------------------------------------------
>>
>>
>> You are never dedicated to something you have complete confidence in.
>>
>> No one is fanatically shouting that the sun is going to rise tomorrow.
>>
>> They know it is going to rise tomorrow. When people are fanatically
>>
>> dedicated to political or religious faiths or any other kind of
>>
>> dogmas or goals, it's always because these dogmas or
>>
>> goals are in doubt.
>>
>>
>> -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance
>>
>>
>>
>>
>>
>> Thanks,
>>
>>
>> Jason
>>
>>
>> ----------------------------------------------------------
>>
>> Jason van Zyl
>>
>> Founder,  Apache Maven
>>
>> jason at sonatype dot com
>>
>> ----------------------------------------------------------
>>
>>
>> Three people can keep a secret provided two of them are dead.
>>
>>
>> -- Unknown
>>
>>
>>
>>
>>
>>   Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder,  Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>> Three people can keep a secret provided two of them are dead.
>>
>>  -- Unknown
>>
>>
>>
>
>
> --
> ..........................................................
> Arnaud HERITIER
> 12 guidelines to boost your productivity with a Java software factory -
> http://tinyurl.com/56s9tw
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>



-- 
..........................................................
Arnaud HERITIER
12 guidelines to boost your productivity with a Java software factory -
http://tinyurl.com/56s9tw
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................