[JIRA] (JENKINS-58987) issue_updated trigger handler can't find "name" field in JSON

165 views
Skip to first unread message

uint@lavabit.com (JIRA)

unread,
Aug 19, 2019, 3:50:03 AM8/19/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz created an issue
 
Jenkins / Bug JENKINS-58987
issue_updated trigger handler can't find "name" field in JSON
Issue Type: Bug Bug
Assignee: Wisen Tanasa
Attachments: image-2019-08-19-09-39-41-680.png
Components: jira-trigger-plugin
Created: 2019-08-19 07:49
Priority: Major Major
Reporter: Tomasz Kurcz

I'm trying to set up a simple issue_updated trigger in my instance of Jenkins.

The webhook receiver seems to fail with this stack trace:

 

Aug 19, 2019 7:32:53 AM org.eclipse.jetty.server.handler.ContextHandler$Context log
WARNING: Error while serving https://jenkins-jira-trigger.pub-staging.jamf.build/jira-trigger-webhook-receiver/
java.lang.reflect.InvocationTargetException
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
	at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:27)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:870)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:458)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:870)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
	at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:243)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at javax.servlet.FilterChain$doFilter.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at javax.servlet.FilterChain$doFilter$3.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhookCrumbExclusion.process(JiraWebhookCrumbExclusion.groovy:22)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:73)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:502)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
	at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
	at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
	at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192)
	at com.atlassian.jira.rest.client.internal.json.CommentJsonParser.parse(CommentJsonParser.java:37)
	at com.atlassian.jira.rest.client.internal.json.CommentJsonParser$parse.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookCommentEventJsonParser.parse(WebhookCommentEventJsonParser.groovy:40)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookCommentEventJsonParser$parse.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:71)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	... 94 more

Is it, by any chance, possible this 'name' field is from a user object? The root cause might be this recent change in Jira - user objects are no longer sent with the username. Instead, we're supposed to use account IDs when using the API.

source

I maintain a simple service at work that utilizes Jira webhooks. I can attest that Jira no longer sends user names with the JSON data in webhooks.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

wisen@ceilfors.com (JIRA)

unread,
Aug 20, 2019, 3:48:02 PM8/20/19
to jenkinsc...@googlegroups.com
Wisen Tanasa commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

Thanks for raising this issue Tomasz Kurcz.

You're analysis looks correct to me. The exception stack trace shows the following stack:

	at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192)

Would you be able to attach the JSON data that you get for reproducibility?

As this plug-in is relying on JRJC library, I can see that there is an active Pull Request that attempts to fix this issue. Unfortunately this PR is 5 months old as of today.

Alternatively, we can inject a dummy name value to remove the parsing error. The value can be something like "User name attribute is not available, see https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/".

This project is open source, would you be interested to make the code change?

uint@lavabit.com (JIRA)

unread,
Aug 23, 2019, 9:11:04 AM8/23/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz updated an issue
 
Change By: Tomasz Kurcz
Attachment: issue-updated-event.json

uint@lavabit.com (JIRA)

unread,
Aug 23, 2019, 9:28:02 AM8/23/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

I set up a debug endpoint of my own that grabs the JSON data and saves it. It should be the same as what your plugin receives. I'm confused now because the name field seems to be right here, with every user object.

issue-updated-event.json

Looking back at the stack trace, there's a reference to CommentJsonParser too. My JSON doesn't have any comments. Maybe JIRA used to send them with issue_updated events, but no longer does?

As far as making the code change goes, I might take a look over the weekend and at least see what it would take. Don't hold your breath too much though - I have no experience with Java/Groovy development.

wisen@ceilfors.com (JIRA)

unread,
Aug 23, 2019, 4:14:02 PM8/23/19
to jenkinsc...@googlegroups.com

I've just tested locally with your payload and it's not triggering the same stack trace too. The stack trace is also clearly showing that it's trying to parse comment events:

```
at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookCommentEventJsonParser.parse(WebhookCommentEventJsonParser.groovy:40)
```

Additionally, the URL of your JIRA doesn't seem to be JIRA Cloud. Atlassian hasn't deprecated the name field in JIRA Server.

The issue-updated-event.json may contain comments, especially when you've left a comment in JIRA. JIRA will actually trigger issue-updated-event on comments too (I can't remember which version).

Is it worth double checking if that's the only event you get? If it makes it easier, you can enable the FINE logging level to get all the webhook events printed out, by following this guide: https://github.com/jenkinsci/jira-trigger-plugin#troubleshooting

uint@lavabit.com (JIRA)

unread,
Aug 26, 2019, 2:43:02 AM8/26/19
to jenkinsc...@googlegroups.com

Hello again. Sorry for the slow response!

The URL https://jamfsoftware.atlassian.net/ is definitely JIRA Cloud. Note the top domain is Atlassian's and not owned by us. They jamfsoftware part is just the subdomain they designated for us.

I just found this. I thought this had happened, but I wasn't 100% certain. I am now! https://developer.atlassian.com/cloud/jira/platform/change-notice-removal-of-comments-from-issue-webhooks/

Here's a tl;dr taken from the link:

The following webhooks will no longer contain any comment objects in their payload:

  • jira:issue_created
  • jira:issue_deleted
  • jira:issue_updated

Note that, as a consequence, jira:issue_updated webhook will no longer be fired for comment-related events.

I double checked and the plugin gets issue_updated when I transition an issue, and comment_created when I create a comment. There doesn't seem to be any overlap.

uint@lavabit.com (JIRA)

unread,
Aug 26, 2019, 2:49:02 AM8/26/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz edited a comment on Bug JENKINS-58987
Hello again. Sorry for the slow response!

The URL [https://jamfsoftware.atlassian.net/] is definitely JIRA Cloud. Note the top domain is Atlassian's and not owned by us. They The _jamfsoftware_ part is just the subdomain they designated for us.


I just found this. I thought this had happened, but I wasn't 100% certain. I am now! [https://developer.atlassian.com/cloud/jira/platform/change-notice-removal-of-comments-from-issue-webhooks/]

Here's a tl;dr taken from the link:
{quote}The following webhooks will no longer contain any {color:#172b4d}{{comment}}{color} objects in their payload:
* {color:#172b4d}{{jira:issue_created}}{color}
* {color:#172b4d}{{jira:issue_deleted}}{color}
* {color:#172b4d}{{jira:issue_updated}}{color}

Note that, as a consequence, {color:#172b4d}{{jira:issue_updated}}{color} webhook will no longer be fired for comment-related events.
{quote}
I double checked and the plugin gets _issue_updated_ when I transition an issue, and _comment_created_ when I create a comment. There doesn't seem to be any overlap.

uint@lavabit.com (JIRA)

unread,
Aug 27, 2019, 3:40:05 AM8/27/19
to jenkinsc...@googlegroups.com

I've attempted to build the plugin locally, but I'm having problems. I tried it both on bare metal (macOS) and in Docker containers based on mainstream alpine-based openjdk images. When it does manage to build without throwing errors about deprecated gradle features (usually when it pulls an older version of gradle), I get something like this:

 

 

Running from: /root/.gradle/caches/modules-2/files-2.1/org.jenkins-ci.main/jenkins-war/2.76/2c0f7275f309a8c559dd3603b826e4898ef0708c/jenkins-war-2.76.war
webroot: System.getProperty("JENKINS_HOME")
Failed to delete the temporary Winstone file /tmp/winstone/jenkins-war-2.76.war
Empty contextPath
Jenkins home directory: /app/work found at: SystemProperties.getProperty("JENKINS_HOME")
Failed to initialize Jenkins

 

On my mac, I managed to get it to run despite the winstone error, but Jenkins ended up hanging after accepting the secret key.

As I said, I'm no good with the Java ecosystem, so I might give up on trying to fix it myself. Sorry.

wisen@ceilfors.com (JIRA)

unread,
Aug 27, 2019, 3:45:01 PM8/27/19
to jenkinsc...@googlegroups.com

Hi Tomasz Kurcz. Apologies for your difficult project setup experience. I'm guessing that's because of the openjdk use. This project is tested with Oracle's JDK, not openjdk. That's for attempting to fix this.

I've been trying to reproduce this issue to no avail. The issue_updated event's comment will not be parsed at all, so I still can't fully digest what's going on in your scenario.

That said, there is a similar issue with a similar stack trace raised in StackOverflow. With the payload, I've managed to reproduce the same bug:

JSONObject["name"] not found.
org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
	at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
	at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
	at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192)
	at com.atlassian.jira.rest.client.internal.json.CommentJsonParser.parse(CommentJsonParser.java:37)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookCommentEventJsonParser.parse(WebhookCommentEventJsonParser.groovy:40)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:71)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhookTest.Should fire comment created event when a comment is added in JIRA Cloud(JiraWebhookTest.groovy:136)

uint@lavabit.com (JIRA)

unread,
Aug 29, 2019, 9:27:04 AM8/29/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz updated an issue
Change By: Tomasz Kurcz
Attachment: issue-updated-event-orig.json

uint@lavabit.com (JIRA)

unread,
Aug 29, 2019, 9:36:04 AM8/29/19
to jenkinsc...@googlegroups.com
Tomasz Kurcz commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

I changed a couple of fields to obfuscate personal data in that JSON payload. I didn't think that would have any impact, so maybe I didn't think to double-check if it still produces the same result. My bad - sorry about that. I can't reproduce the failure now either with that one.

I generated a new payload the same way. Oddly enough, it now complains about the 'Description' JSON object for me.

New payload: issue-updated-event-orig.json (this time it's exactly what I fed into Jira trigger plugin locally, and exactly what Jira spew out).

 tomasz.kurcz  ~  Desktop  curl -X POST -H "Content-Type: application/json" -d @issue-updated-event-orig.json http://localhost:8080/jira-trigger-webhook-receiver/  
  <!DOCTYPE html><html><head resURL="/static/15af4287" data-rooturl="" data-resurl="/static/15af4287">
        <title>Jenkins [Jenkins]</title><link rel="stylesheet" href="/static/15af4287/css/layout-common.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/css/style.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/css/color.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/css/responsive-grid.css" type="text/css" /><link rel="shortcut icon" href="/static/15af4287/favicon.ico" type="image/vnd.microsoft.icon" /><link color="black" rel="mask-icon" href="/images/mask-icon.svg" /><script>var isRunAsTest=false; var rootURL=""; var resURL="/static/15af4287";</script><script src="/static/15af4287/scripts/prototype.js" type="text/javascript"></script><script src="/static/15af4287/scripts/behavior.js" type="text/javascript"></script><script src='/adjuncts/15af4287/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src="/static/15af4287/scripts/yui/yahoo/yahoo-min.js"></script><script src="/static/15af4287/scripts/yui/dom/dom-min.js"></script><script src="/static/15af4287/scripts/yui/event/event-min.js"></script><script src="/static/15af4287/scripts/yui/animation/animation-min.js"></script><script src="/static/15af4287/scripts/yui/dragdrop/dragdrop-min.js"></script><script src="/static/15af4287/scripts/yui/container/container-min.js"></script><script src="/static/15af4287/scripts/yui/connection/connection-min.js"></script><script src="/static/15af4287/scripts/yui/datasource/datasource-min.js"></script><script src="/static/15af4287/scripts/yui/autocomplete/autocomplete-min.js"></script><script src="/static/15af4287/scripts/yui/menu/menu-min.js"></script><script src="/static/15af4287/scripts/yui/element/element-min.js"></script><script src="/static/15af4287/scripts/yui/button/button-min.js"></script><script src="/static/15af4287/scripts/yui/storage/storage-min.js"></script><script src="/static/15af4287/scripts/hudson-behavior.js" type="text/javascript"></script><script src="/static/15af4287/scripts/sortable.js" type="text/javascript"></script><script>crumb.init("Jenkins-Crumb", "0938af78b33575389e1c93ffbe245bf2");</script><link rel="stylesheet" href="/static/15af4287/scripts/yui/container/assets/container.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/scripts/yui/assets/skins/sam/skin.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/scripts/yui/container/assets/skins/sam/container.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/scripts/yui/button/assets/skins/sam/button.css" type="text/css" /><link rel="stylesheet" href="/static/15af4287/scripts/yui/menu/assets/skins/sam/menu.css" type="text/css" /><meta name="ROBOTS" content="INDEX,NOFOLLOW" /><meta name="viewport" content="width=device-width, initial-scale=1" /><script src="/adjuncts/15af4287/org/kohsuke/stapler/jquery/jquery.full.js" type="text/javascript"></script><script>var Q=jQuery.noConflict()</script><link rel="stylesheet" href="/plugin/jquery-ui/css/jquery-ui-1.8.9.custom.css" type="text/css" /><script src="/plugin/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script><script src="/static/15af4287/jsbundles/page-init.js" type="text/javascript"></script></head><body data-model-type="hudson.model.Hudson" id="jenkins" class="yui-skin-sam two-column jenkins-2.176.3" data-version="2.176.3"><a href="#skip2content" class="skiplink">Skip to content</a><div id="page-head"><div id="header"><div class="logo"><a id="jenkins-home-link" href="/"><img src="/static/15af4287/images/headshot.png" alt="[Jenkins]" id="jenkins-head-icon" /><img src="/static/15af4287/images/title.png" alt="Jenkins" width="139" id="jenkins-name-icon" height="34" /></a></div><div class="login"> <a href="/login?from=%2Fjira-trigger-webhook-receiver%2F"><b>log in</b></a></div><div class="searchbox hidden-xs"><form role="search" method="get" name="search" action="/search/" style="position:relative;" class="no-json"><div id="search-box-minWidth"></div><div id="search-box-sizer"></div><div id="searchform"><input role="searchbox" name="q" placeholder="search" id="search-box" class="has-default-text" /> <a href="https://jenkins.io/redirect/search-box"><img src="/static/15af4287/images/16x16/help.png" style="width: 16px; height: 16px; " class="icon-help icon-sm" /></a><div id="search-box-completion"></div><script>createSearchBox("/search/");</script></div></form></div></div><div id="breadcrumbBar"><tr id="top-nav"><td id="left-top-nav" colspan="2"><link rel='stylesheet' href='/adjuncts/15af4287/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/15af4287/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class="top-sticker noedge"><div class="top-sticker-inner"><div id="right-top-nav"></div><ul id="breadcrumbs"><li class="item"><a href="/" class="model-link inside">Jenkins</a></li><li href="/" class="children"></li></ul><div id="breadcrumb-menu-target"></div></div></div></td></tr></div></div><div id="page-body" class="clear"><div id="side-panel"><div class="task"><a href="https://jenkins.io/" class="task-icon-link"><img src="/static/15af4287/images/24x24/next.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-next icon-md" /></a> <a href="https://jenkins.io/" class="task-link">Jenkins project</a></div><div class="task"><a href="https://jenkins.io/redirect/report-an-issue" class="task-icon-link"><img src="/static/15af4287/images/24x24/gear2.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-gear2 icon-md" /></a> <a href="https://jenkins.io/redirect/report-an-issue" class="task-link">Bug tracker</a></div><div class="task"><a href="https://jenkins.io/redirect/mailing-lists" class="task-icon-link"><img src="/static/15af4287/images/24x24/search.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-search icon-md" /></a> <a href="https://jenkins.io/redirect/mailing-lists" class="task-link">Mailing Lists</a></div><div class="task"><a href="https://twitter.com/jenkinsci" class="task-icon-link"><img src="/static/15af4287/images/24x24/user.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-user icon-md" /></a> <a href="https://twitter.com/jenkinsci" class="task-link">Twitter: @jenkinsci</a></div></div><div id="main-panel"><a name="skip2content"></a><h1 style="text-align: center"><img src="/static/15af4287/images/rage.png" width="154" height="179" /><span style="font-size:50px"> Oops!</span></h1><div id="error-description"><p>A problem occurred while processing the request.
        Please check <a href="https://jenkins.io/redirect/issue-tracker">our bug tracker</a> to see if a similar problem has already been reported.
        If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem.
        If you think this is a new issue, please file a new issue.
        When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins.
        <a href="https://jenkins.io/redirect/users-mailing-list">The users list</a> might be also useful in understanding what has happened.</p><h2>Stack trace</h2><pre style="margin:2em; clear:both">org.codehaus.jettison.json.JSONException: JSONObject["description"] not found.
	at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
	at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
	at com.atlassian.jira.rest.client.internal.json.StatusJsonParser.parse(StatusJsonParser.java:31)
	at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:244)
	at com.atlassian.jira.rest.client.internal.json.IssueJsonParser$parse.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser.parse(WebhookChangelogEventJsonParser.groovy:35)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser$parse.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:63)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
	at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:27)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
Caused: javax.servlet.ServletException
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
	at javax.servlet.FilterChain$doFilter.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at javax.servlet.FilterChain$doFilter.call(Unknown Source)
	at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhookCrumbExclusion.process(JiraWebhookCrumbExclusion.groovy:22)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:73)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:502)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:748)
</pre></div></div></div><footer><div class="container-fluid"><div class="row"><div class="col-md-6" id="footer"></div><div class="col-md-18"><span class="page_generated">Page generated: Aug 29, 2019 1:23:06 PM UTC</span><span class="rest_api"><a href="api/">REST API</a></span><span class="jenkins_ver"><a href="https://jenkins.io/">Jenkins ver. 2.176.3</a></span></div></div></div></footer></body></html>

wisen@ceilfors.com (JIRA)

unread,
Aug 30, 2019, 4:25:01 PM8/30/19
to jenkinsc...@googlegroups.com

That's ok. Is your job working now then I presume?

albert@xenomedia.com (JIRA)

unread,
Sep 25, 2019, 5:49:02 PM9/25/19
to jenkinsc...@googlegroups.com

Tomasz Kurcz how were you able to modify the payload coming from JIRA? I didn't think we can control that.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

albert@xenomedia.com (JIRA)

unread,
Sep 29, 2019, 4:40:05 PM9/29/19
to jenkinsc...@googlegroups.com

Hi Wisen Tanasa,
I am getting the same error and you mentioned that we can have JIRA inject a dummy name value. How would I go about doing that in JIRA?

This is my what I am testing (what JIRA is sending except replaced some account info):

 curl -D- -X POST -H "Content-Type: application/json" -d '{"timestamp":1569428005695,"webhookEvent":"jira:issue_updated","issue_event_type_name":"issue_assigned","user":{"self":"https://mydomain.atlassian.net/rest/api/2/user?accountId=xxxxxx","accountId":"xxxxxxx","emailAddress":"\"?\"","avatarUrls":{"48x48":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=48&s=48","24x24":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=24&s=24","16x16":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=16&s=16","32x32":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=32&s=32"},"displayName":"Albert Jankowski","active":true,"timeZone":"America/Chicago","accountType":"atlassian"},"issue":{"id":"46384","self":"https://mydomain.atlassian.net/rest/api/2/issue/46384","key":"OE-121","fields":{"statuscategorychangedate":"2019-09-25T08:37:05.392-0500","issuetype":{"self":"https://mydomain.atlassian.net/rest/api/2/issuetype/3","id":"3","description":"A task that needs to be done.","iconUrl":"https://mydomain.atlassian.net/secure/viewavatar?size=medium&avatarId=10618&avatarType=issuetype","name":"Task","subtask":false,"avatarId":10618},"project":{"self":"https://mydomain.atlassian.net/rest/api/2/project/14302","id":"14302","key":"OE","name":"ddd - domain.com","projectTypeKey":"software","simplified":false,"avatarUrls":{"48x48":"https://mydomain.atlassian.net/secure/projectavatar?avatarId=11403","24x24":"https://mydomain.atlassian.net/secure/projectavatar?size=small&s=small&avatarId=11403","16x16":"https://mydomain.atlassian.net/secure/projectavatar?size=xsmall&s=xsmall&avatarId=11403","32x32":"https://mydomain.atlassian.net/secure/projectavatar?size=medium&s=medium&avatarId=11403"}},"fixVersions":[],"customfield_11001":null,"customfield_11200":"{}","resolution":null,"customfield_11401":null,"customfield_11400":null,"customfield_10500":null,"customfield_10700":null,"resolutiondate":null,"workratio":-1,"watches":{"self":"https://mydomain.atlassian.net/rest/api/2/issue/OE-121/watchers","watchCount":1,"isWatching":false},"lastViewed":"2019-09-25T09:48:49.705-0500","created":"2019-09-21T08:18:43.783-0500","priority":{"self":"https://mydomain.atlassian.net/rest/api/2/priority/3","iconUrl":"https://mydomain.atlassian.net/images/icons/priorities/major.svg","name":"Major","id":"3"},"customfield_10100":"1|i00th3:","labels":["OE"],"customfield_11502":null,"customfield_11501":null,"customfield_11504":null,"customfield_11503":null,"customfield_11506":null,"customfield_11505":null,"versions":[],"issuelinks":[],"assignee":{"self":"https://mydomain.atlassian.net/rest/api/2/user?accountId=xxxx","accountId":"xxxxxxx","emailAddress":"alb...@mydomain.com","avatarUrls":{"48x48":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=48&s=48","24x24":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=24&s=24","16x16":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=16&s=16","32x32":"https://secure.gravatar.com/avatar/64619bc45376b4be3d0543ca45f1121e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAJ-2.png&size=32&s=32"},"displayName":"Albert Jankowski","active":true,"timeZone":"America/Chicago","accountType":"atlassian"},"updated":"2019-09-25T11:13:25.689-0500","status":{"self":"https://mydomain.atlassian.net/rest/api/2/status/4","description":"This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.","iconUrl":"https://mydomain.atlassian.net/images/icons/statuses/reopened.png","name":"Reopened","id":"4","statusCategory":{"self":"https://mydomain.atlassian.net/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"New"}},"components":[],"description":"Plugin Name: Formidable Forms,\tNot current (4.02.02 => 4.02.04)\nPlugin\tName: UpdraftPlus - Backup/Restore,\tNot current (1.16.16 => 1.16.17)\nPlugin\tName: Yoast SEO,\tNot current (12.0 => 12.1)\n\n","customfield_11100":{"hasEpicLinkFieldDependency":false,"showField":false,"nonEditableReason":{"reason":"PLUGIN_LICENSE_ERROR","message":"Portfolio for Jira must be licensed for the Parent Link to be available."}},"customfield_11300":null,"customfield_11500":null,"customfield_10401":null,"security":null,"customfield_10007":null,"customfield_10008":null,"customfield_10800":null,"attachment":[],"summary":"WPSITE UPDATES -- Experience Greater asdfasdf","creator":{"self":"https://mydomain.atlassian.net/rest/api/2/user?accountId=xxxxxx","accountId":"xxxxxx","emailAddress":"drupa...@mydomain.com","avatarUrls":{"48x48":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=48&s=48","24x24":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=24&s=24","16x16":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=16&s=16","32x32":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=32&s=32"},"displayName":"Bot","active":true,"timeZone":"America/Chicago","accountType":"atlassian"},"subtasks":[],"reporter":{"self":"https://mydomain.atlassian.net/rest/api/2/user?accountId=xxxxxxx","accountId":"557058:c15af808-35e7-4e16-b167-e8b89a37bc6b","emailAddress":"drupa...@mydomain.com","avatarUrls":{"48x48":"https://secure.gravatar.com/avatar/xxxxx?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=48&s=48","24x24":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=24&s=24","16x16":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=16&s=16","32x32":"https://secure.gravatar.com/avatar/709171cd640bfaf4f75a7453c7ae4b08?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FXB-1.png&size=32&s=32"},"displayName":"xx Bot","active":true,"timeZone":"America/Chicago","accountType":"atlassian"},"customfield_10000":null,"customfield_10001":null,"customfield_10200":null,"customfield_10002":null,"customfield_10003":null,"customfield_10400":null,"customfield_11402":null,"environment":null,"customfield_11603":null,"customfield_11602":null,"customfield_11605":null,"customfield_11604":[],"duedate":null,"customfield_11606":null,"votes":{"self":"https://mydomain.atlassian.net/rest/api/2/issue/OE-121/votes","votes":0,"hasVoted":false}}},"changelog":{"id":"98461","items":[{"field":"assignee","fieldtype":"jira","fieldId":"assignee","from":"557058:c15af808-35e7-4e16-b167-e8b89a37bc6b","fromString":"Bot","to":"xxxx","toString":"Albert Jankowski","tmpFromAccountId":"xxxxxxxxxxxx","tmpToAccountId":"xxxxxxxxxxxx"}]}}' https://myjira.com/jira-trigger-webhook-receiver/

I have actaully tried "name": "dummy value", "timestamp"....... as a test but it still gave the same error.

uint@lavabit.com (JIRA)

unread,
Sep 30, 2019, 3:31:02 AM9/30/19
to jenkinsc...@googlegroups.com

Hi.

Albert Jankowski: What you can do for debugging is save the JSON payload that came from JIRA, modify it, and then use curl to send it to the plugin directly.

Wisen Tanasa: Last I checked, that last payload I posted (issue-updated-event-orig.json) did trigger the issue. I'm pretty sure the issue is there (unless someone fixed it), it's just that previously I messed up with providing test data. Sorry for that.

udayasree.patlolla@bcbsma.com (JIRA)

unread,
Jan 14, 2020, 10:09:07 AM1/14/20
to jenkinsc...@googlegroups.com

Hi,

I am facing the below issue when I am trying to trigger Jenkins job upon user comment or status change in Jira cloud

org.codehaus.jettison.json.JSONException: JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.CommentJsonParser.parse(CommentJsonParser.java:37) at com.atlassian.jira.rest.client.internal.json.CommentJsonParser$parse.call(Unknown Source) at

 

  • The library that the plugin is using is not supported for Cloud, but only for Server, as you can see in the description of the code:
  • Java client library (useful for any JVM languages), which allows to communicate with JIRA via its new REST API (JIRA 4.2 and newer).

"name" field is blocked b Jira cloud

https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/

piotr.pozniak@thebeaverhead.com (JIRA)

unread,
Feb 20, 2020, 4:32:07 AM2/20/20
to jenkinsc...@googlegroups.com

Same here as per Udaya Sree comment. The webhook received the following data:

Webhook event body: Feb 20, 2020 9:17:46 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "timestamp": 1582190264980, "webhookEvent": "jira:issue_updated", "issue_event_type_name": "issue_generic", "user": { "self": "https://xxxxx.atlassian.net/rest/api/2/user?accountId=xxxxxxxxx", "accountId": "xxxxxxxxx", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=48&s=48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=24&s=24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=16&s=16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=32&s=32" }, "displayName": "AAA BBB", "active": true, "timeZone": "Europe/London", "accountType": "atlassian" }, "issue": { "id": "26271", "self": "https://zzzzzz.atlassian.net/rest/api/2/26271", "key": "TMC-204", "fields": { "statuscategorychangedate": "2020-02-20T09:17:44.965+0000", "issuetype": { "self": "https://zzzzzz.atlassian.net/rest/api/2/issuetype/5", "id": "5", "description": "The sub-task of the issue", "iconUrl": "https://zzzzzz.atlassian.net/secure/viewavatar?size=medium&avatarId=10316&avatarType=issuetype", "name": "Sub-task", "subtask": true, "avatarId": 10316 }, "parent": { "id": "26170", "key": "TMC-177", "self": "https://zzzzzz.atlassian.net/rest/api/2/issue/26170", "fields": { "summary": "Create comment-like chat feature", "status": { "self": "https://zzzzzz.atlassian.net/rest/api/2/status/10301", "description": "", "iconUrl": "https://zzzzzz.atlassian.net/", "name": "Selected for Development", "id": "10301", "statusCategory": { "self": "https://zzzzzz.atlassian.net/rest/api/2/statuscategory/2", "id": 2, "key": "new", "colorName": "blue-gray", "name": "\u041a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e" } }, "priority": { "self": "https://zzzzzz.atlassian.net/rest/api/2/priority/3", "iconUrl": "https://zzzzzz.atlassian.net/images/icons/priorities/major.svg", "name": "\u0421\u0435\u0440\u044c\u0435\u0437\u043d\u043e", "id": "3" }, "issuetype": { "self": "https://zzzzzz.atlassian.net/rest/api/2/issuetype/10001", "id": "10001", "description": "\u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0446\u0435\u043b\u0435\u0439.", "iconUrl": "https://zzzzzz.atlassian.net/secure/viewavatar?size=medium&avatarId=10315&avatarType=issuetype", "name": "\u0418\u0441\u0442\u043e\u0440\u0438\u044f", "subtask": false, "avatarId": 10315 } } }, "timespent": 10320, "project": { "self": "https://zzzzzz.atlassian.net/rest/api/2/project/10312", "id": "10312", "key": "TMC", "name": "WWWWWWWW", "projectTypeKey": "software", "simplified": false, "avatarUrls": { "48x48": "https://zzzzzz.atlassian.net/secure/projectavatar?pid=10312&avatarId=11484", "24x24": "https://zzzzzz.atlassian.net/secure/projectavatar?size=small&s=small&pid=10312&avatarId=11484", "16x16": "https://zzzzzz.atlassian.net/secure/projectavatar?size=xsmall&s=xsmall&pid=10312&avatarId=11484", "32x32": "https://zzzzzz.atlassian.net/secure/projectavatar?size=medium&s=medium&pid=10312&avatarId=11484" } }, "fixVersions": [ { "self": "https://zzzzzz.atlassian.net/rest/api/2/version/14743", "id": "14743", "description": "", "name": "0.4.4", "archived": false, "released": false } ], "aggregatetimespent": 10320, "resolution": null, "customfield_10302": null, "customfield_10500": { "hasEpicLinkFieldDependency": false, "showField": false, "nonEditableReason": { "reason": "PLUGIN_LICENSE_ERROR", "message": "Portfolio for Jira must be licensed for the Parent Link to be available." } }, "customfield_10700": null, "customfield_10900": null, "customfield_10901": null, "customfield_10902": null, "resolutiondate": null, "customfield_10903": null, "customfield_10904": null, "workratio": -1, "customfield_10905": null, "customfield_10906": null, "customfield_10907": null, "customfield_10908": 6.0, "customfield_10909": null, "watches": { "self": "https://zzzzzz.atlassian.net/rest/api/2/issue/TMC-204/watchers", "watchCount": 1, "isWatching": false }, "lastViewed": "2020-02-20T09:16:53.026+0000", "created": "2020-02-17T09:17:07.642+0000", "priority": { "self": "https://zzzzzz.atlassian.net/rest/api/2/priority/3", "iconUrl": "https://zzzzzz.atlassian.net/images/icons/priorities/major.svg", "name": "\u0421\u0435\u0440\u044c\u0435\u0437\u043d\u043e", "id": "3" }, "customfield_10300": null, "customfield_10301": [ ], "labels": [ ], "timeestimate": 0, "aggregatetimeoriginalestimate": null, "versions": [ ], "issuelinks": [ ], "assignee": { "self": "https://zzzzzz.atlassian.net/rest/api/2/user?accountId=xxxxxxxxx", "accountId": "xxxxxxxxx", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=48&s=48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=24&s=24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=16&s=16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/xxxxxxxxx/5e42b9b2-bbea-4b1e-a009-1bafa7aab845/128?size=32&s=32" }, "displayName": "AAA BBB", "active": true, "timeZone": "Europe/London", "accountType": "atlassian" }, "updated": "2020-02-20T09:17:44.964+0000", "status": { "self": "https://zzzzzz.atlassian.net/rest/api/2/status/3", "description": "This issue is being actively worked on at the moment by the assignee.", "iconUrl": "https://zzzzzz.atlassian.net/images/icons/statuses/inprogress.png", "name": "In Progress", "id": "3", "statusCategory": { "self": "https://zzzzzz.atlassian.net/rest/api/2/statuscategory/4", "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "components": [ { "self": "https://zzzzzz.atlassian.net/rest/api/2/component/10609", "id": "10609", "name": "Web App" } ], "timeoriginalestimate": null, "description": "....", "customfield_10011": "0|100jan:i", "timetracking": { "remainingEstimate": "0m", "timeSpent": "2h 52m", "remainingEstimateSeconds": 0, "timeSpentSeconds": 10320 }, "customfield_10006": null, "customfield_10600": "{}", "customfield_10007": null, "security": null, "customfield_10800": null, "attachment": [ ], "aggregatetimeestimate": 0, "summary": "Display chat messages on chat", "creator": { "self": "https://zzzzzz.atlassian.net/rest/api/2/user?accountId=YYYYYYY", "accountId": "OOOOOOO", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=48&s=48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=24&s=24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=16&s=16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=32&s=32" }, "displayName": "RRRR TTTTTT", "active": true, "timeZone": "Europe/Warsaw", "accountType": "atlassian" }, "subtasks": [ ], "reporter": { "self": "https://zzzzzz.atlassian.net/rest/api/2/user?accountId=YYYYYYY", "accountId": "OOOOOOO", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=48&s=48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=24&s=24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=16&s=16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/OOOOOOO/9c70de55-c7d2-4a4e-acca-e59517fb5ced/128?size=32&s=32" }, "displayName": "RRRR TTTTTT", "active": true, "timeZone": "Europe/Warsaw", "accountType": "atlassian" }, "customfield_10000": null, "aggregateprogress": { "progress": 10320, "total": 10320, "percent": 100 }, "customfield_10001": null, "customfield_10002": null, "customfield_10003": null, "customfield_10400": null, "environment": null, "customfield_10910": null, "customfield_10911": null, "customfield_10912": null, "customfield_10913": null, "duedate": null, "customfield_10914": null, "progress": { "progress": 10320, "total": 10320, "percent": 100 }, "votes": { "self": "https://zzzzzz.atlassian.net/rest/api/2/issue/TMC-204/votes", "votes": 0, "hasVoted": false } } }, "changelog": { "id": "70223", "items": [ { "field": "status", "fieldtype": "jira", "fieldId": "status", "from": "10301", "fromString": "Selected for Development", "to": "3", "toString": "In Progress" } ] } }

rsc@adr.de (JIRA)

unread,
Feb 21, 2020, 11:11:08 AM2/21/20
to jenkinsc...@googlegroups.com

JsonParseUtil is released in version 5.2.0, see https://bitbucket.org/atlassian/jira-rest-java-client/pull-requests/93/jrjc-240-added-support-for-accountid#comment-137009716

Kamil Cichy commented on pull request #93:
JRJC-240: Added support for accountId.

Hello everyone,

First of all I’m sorry it took so long to merge this PR. This is because this plugin is not supported. It means nobody is watching the PR queue and we don’t have any time budgeted to work on this. You should really thank @Andy Heinzer for nudging us to merge it 

I reviewed the code to ensure it was backwards-compatible. Then I had to do some extra work to fix the CI for this plugin (it’s been broken since 8.4.0). Only then I was able to release it (the second attempt was successful). I’m only writing this to justify our inability to support this plugin properly. What seems to be a single “merge” click was in fact a couple of hours of work.

Anyway, this PR is merged, plugin version 5.2.0 has been released. Hopefully better late than ever.

Kamil
Jira Server and DC developer

 

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 24, 2020, 5:11:06 AM2/24/20
to jenkinsc...@googlegroups.com

Hi everyone, i am using Jira trigger plugin(version 1.0.0) for triggering jenkins job when ticket status changed. I am getting below mentioned error in jenkins , 5 days before it was working good. Kindly help me

"Error while serving https://serverip/jira-trigger-webhook-receiver/org.codehaus.jettison.json.JSONException: JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:34) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:31)"

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 24, 2020, 5:12:02 AM2/24/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Hi everyone, i am using Jira trigger plugin(version 1.0.0) for triggering jenkins job when ticket status changed. I am getting below mentioned error in jenkins , 5 days before it was working good. Kindly help me how to resolve this issue

"Error while serving
[ https://serverip/jira-trigger-webhook-receiver/org.codehaus.jettison.json.JSONException: ] JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:34) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:31)"

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 24, 2020, 5:19:02 AM2/24/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Hi everyone, i am using Jira trigger plugin(version 1.0.0) in jenkins (version 2.204.1) for triggering jenkins job when ticket status changed. I am getting below mentioned error in jenkins , 5 days before it was working good. Kindly help me how to resolve this issue


"Error while serving [https://serverip/jira-trigger-webhook-receiver/org.codehaus.jettison.json.JSONException:] JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:34) at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:31)"

rlinux57@networkconfig.net (JIRA)

unread,
Feb 24, 2020, 6:06:06 AM2/24/20
to jenkinsc...@googlegroups.com

Hi Ashok T R

I am getting the same issue, but still having no update from jenkins side. If you will get solution then share it.
https://issues.jenkins-ci.org/browse/JENKINS-61184

rsc@adr.de (JIRA)

unread,
Feb 25, 2020, 4:36:04 AM2/25/20
to jenkinsc...@googlegroups.com

This is caused by Jira-Cloud implementing GDPR compliance on 14.Feb.2020 in the Cloud API.

The jira-rest-java-client version 5.2.0 (which is reflecting that change) was released last friday (one week later

For the jira-plugin two pull request are handling that
moving to 5.1.6: https://github.com/jenkinsci/jira-plugin/pull/212
and then to 5.2.0: https://github.com/jenkinsci/jira-plugin/pull/213

 

Similar solution should be feasible here for jira-trigger-plugin.

 

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 26, 2020, 7:33:02 AM2/26/20
to jenkinsc...@googlegroups.com

Thanks Stefan Cordes . I am not a good coder , I believe someone will fix this issue.

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 26, 2020, 7:37:03 AM2/26/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Thanks [~sc_rsc] . I am not a good coder at coding , I believe someone will fix this issue.

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 26, 2020, 7:42:02 AM2/26/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Thanks [~sc_rsc] . I am not a good at coding, I believe someone will fix this issue.

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 28, 2020, 2:23:04 AM2/28/20
to jenkinsc...@googlegroups.com

Hi , we are waiting for this fix , automation process is pending due to this issue. Can anyone help me on this?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 28, 2020, 2:38:03 AM2/28/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Hi , we are waiting for this fix , automation process is pending stopped due to this issue. Can anyone help me on this?

rlinux57@networkconfig.net (JIRA)

unread,
Feb 28, 2020, 2:40:03 AM2/28/20
to jenkinsc...@googlegroups.com

Hi Ashok, Contact to Jira cloud team to enable the feature flag which disable the recent changes of Jira and back it to old style that will be valid till 9th march. After that we must require a plugin fix for this issue.

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 28, 2020, 4:17:04 AM2/28/20
to jenkinsc...@googlegroups.com

ashok.ravi92@gmail.com (JIRA)

unread,
Feb 28, 2020, 5:17:04 AM2/28/20
to jenkinsc...@googlegroups.com
Ashok T R edited a comment on Bug JENKINS-58987
Thanks [~rlinux57] ..  , after enabling the Jira feature flag, is everything working for you?

rlinux57@networkconfig.net (JIRA)

unread,
Feb 28, 2020, 6:47:04 AM2/28/20
to jenkinsc...@googlegroups.com

ashok.ravi92@gmail.com (JIRA)

unread,
Mar 2, 2020, 8:32:02 AM3/2/20
to jenkinsc...@googlegroups.com

Hi Usama Tariq, thanks for ur help. Now Jira ticket triggers jenkins build. Sad thing is it will work till 9th march, as u said.

Believing someone will fix this issue.

rlinux57@networkconfig.net (JIRA)

unread,
Mar 3, 2020, 6:35:03 AM3/3/20
to jenkinsc...@googlegroups.com

Ashok T R, Good to hear. The maintainer of a plugins are  "Wisen Tanasa" (https://github.com/ceilfors) and an "Oleg Nenashev" (https://github.com/oleg-nenashev) is also a top contributor. The best option here is to get in contact with these individuals to update their code to adapt the GDPR changes and make the plugin compatible with Jira Cloud.

 

If you get any update then do share.

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 4, 2020, 6:08:03 AM3/4/20
to jenkinsc...@googlegroups.com

Just to follow-up on a private email from Ashok T R. I was asked to fix this issue, but unfortunately is not something I can do. I do not maintain this plugin and cannot provide the support you are requesting for. For what it worth, the Jenkins project is driven by the community, and we do not provide support. There are companies and vendors which provide commercial support for Jenkins.... At the same time, we can handle this request in a community way.

  • Anyone can submit a pull request to the plugin with a fix. 
  • If there is a suggested fix, I will do my best to help it to get reviews and an action by the maintainers
  • If Wisen Tanasa is not interested in the plugin anymore, anyone can start a thread about the plugin ownership transfer: https://jenkins.io/doc/developer/plugin-governance/adopt-a-plugin/. The ownership transfer takes 2-3 weeks if the maintainers are not responsive. So it will happen after Mar 09
  • If there a fix PR, anyone will be able to use a manually built solution. Better than nothing

 

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 4, 2020, 6:11:02 AM3/4/20
to jenkinsc...@googlegroups.com

rodrigc@FreeBSD.org (JIRA)

unread,
Mar 6, 2020, 4:09:03 PM3/6/20
to jenkinsc...@googlegroups.com
Change By: Craig Rodrigues
Status: Open Fixed but Unreleased
Resolution: Duplicate

wisen@ceilfors.com (JIRA)

unread,
Mar 11, 2020, 2:57:07 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Wisen Tanasa
Resolution: Duplicate
Status: Fixed but Unreleased Reopened

wisen@ceilfors.com (JIRA)

unread,
Mar 11, 2020, 3:32:02 AM3/11/20
to jenkinsc...@googlegroups.com
Wisen Tanasa commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

I've just reopened this issue as it's not fixed yet. I'm currently the maintainer of this plugin, and I genuinely struggle to maintain this as I no longer use Jenkins. So here's my current plan:

  • I'm happy to review, merge, and publish a PR if someone can make a working change.
  • If I'm involved in the fix, I need to justify my personal time (I don't maintain this plugin for work) that people are genuinely finding this plugin useful. I have set up an OpenCollective with $100/month fundraising goal: https://opencollective.com/jira-trigger-plugin. That's roughly $5 for 20 backers, which is less than 1% of the current active installation (3400). If your business genuinely find this plugin helpful, consider contributing to the collective. It will help me get off my couch and help people out.
    • Please get familiar with the open source model. Think of $5 as you buying me a drink! Many of us are not paid to maintain this plugin and purely motivated because it was fun, it will help if you don't treat us like Jenkins support person. We're not part of CloudBees either.
  • As Oleg Nenashev has mentioned, I'm happy for this plugin to be adopted. I've marked this plugin in the home page that I'm looking for a co-maintainer last year, so that I can help on board you and get comfortable with the codebase. Please reach out to me if you're interested in this, even just slightly!

These are how this issue must be tackled:

  • Long term fix: completely remove JRJC and apply the Postel's Law i.e. the plugin shouldn't break when JIRA changes, especially when it's not used internally within the plugin.
  • Med term fix: Upgrade JRJC. Craig Rodrigues has kindly raised a PR here in GitHub. However, it's hitting a build failure at the moment with NoClassDefFoundError.
  • Short term fix: fill in "name" variable with hardcoded value to satisfy the older version of JRJC.

rlinux57@networkconfig.net (JIRA)

unread,
Mar 11, 2020, 6:53:07 AM3/11/20
to jenkinsc...@googlegroups.com

Hi Wisen Tanasa,

We are facing issue in my jenkins deployment. We have integrated jira with jenkins and Deploy jenkins project when ticket is created and matched some fields and approval with jenkins project JQL and then trigger. I am using following plugin "jira-trigger-plugin(https://github.com/jenkinsci/jira-trigger-plugin)" and [ "https://plugins.jenkins.io/jir://plugins.jenkins.io/jira-ext/"|https://plugins.jenkins.io/jira-ext/%22]; as jira has made some GDPR compliance changes the plugin connectivity with jira has been broken. Please do the needul. Please let me know can you fix both plugins for me ? 
Also share the exact quote for permanent fix. So we proceed the process.

ashok.ravi92@gmail.com (JIRA)

unread,
Mar 13, 2020, 2:49:03 AM3/13/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:02:03 AM3/15/20
to jenkinsc...@googlegroups.com

Hi Wisen Tanasa

I have configured my jenkins https url in jira's webhook. Also I am receiving "Received Webhook callback from comment. Event type: comment_created" in my jenkins logs when I add a comment in my Jira ticket.

However the build is not getting triggered. Could you please help me in fixing this?

We are on Jira cloud and have followed all the Troubleshooting steps listed on page https://github.com/jenkinsci/jira-trigger-plugin

I am not able to understand  "If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check." this part from troubleshooting steps.

Please let me know if anything else is needed from my end.

Usama Tariq,Ashok T R - Guys please guide me on this.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:11:04 AM3/15/20
to jenkinsc...@googlegroups.com
Amrut dengre edited a comment on Bug JENKINS-58987
Hi [~ceilfors]


I have configured my jenkins https url in jira's webhook. Also I am receiving "Received Webhook callback from comment. Event type: comment_created" in my jenkins logs when I add a comment in my Jira ticket.

However the build is not getting triggered. Could you please help me in fixing this?

We are on Jira cloud and my jenkins is running on Ec2 Instance.I have followed all the Troubleshooting steps listed on page [https://github.com/jenkinsci/jira-trigger-plugin]


I am not able to understand  "If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check." this part from troubleshooting steps.

Please let me know if anything else is needed from my end.

[~rlinux57],[~ashok_t_r] - Guys please guide me on this.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:14:38 AM3/15/20
to jenkinsc...@googlegroups.com

Please find below my jenkins logs - 

 

Mar 15, 2020 10:00:03 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook
Webhook event body:
Mar 15, 2020 10:00:03 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook
{
"timestamp": 1584266402422,
"webhookEvent": "comment_created",
"comment": {
"self": "https://XXXX.atlassian.net/rest/api/2/issue/14092/comment/13607",
"id": "13607",
"author": {
"self": "https://XXXX.atlassian.net/rest/api/2/user?accountId=5e1d43d8bf70110ca24cb07c",
"accountId": "5e1d43d8bf7010cab07c",
"avatarUrls":

{ "48x48": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=48&s=48", "24x24": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=24&s=24", "16x16": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=16&s=16", "32x32": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=32&s=32" }

,
"displayName": "Amrut Dengre Technical Engineer -XXXX",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"body": "NEWBUILD",
"updateAuthor": {
"self": "https://XXXX.atlassian.net/rest/api/2/user?accountId=5e1d43d8bf70110ca24cb07c",
"accountId": "5e1d43d8bf70110ca24cb07c",
"avatarUrls":

{ "48x48": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=48&s=48", "24x24": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=24&s=24", "16x16": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=16&s=16", "32x32": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=32&s=32" }

,
"displayName": "Amrut Dengre Technical Engineer -XXXX",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"created": "2020-03-15T15:30:02.422+0530",
"updated": "2020-03-15T15:30:02.422+0530",
"jsdPublic": true
},
"issue": {
"id": "14092",
"self": "https://XXXX.atlassian.net/rest/api/2/14092",
"key": "TP-2",
"fields": {
"summary": "Issue_1",
"issuetype":

{ "self": "https://XXXX.atlassian.net/rest/api/2/issuetype/10010", "id": "10010", "description": "Stories track functionality or features expressed as user goals.", "iconUrl": "https://XXXX.atlassian.net/secure/viewavatar?size=medium&avatarId=10315&avatarType=issuetype", "name": "Story", "subtask": false, "avatarId": 10315, "entityId": "471f7f1a-7aca-4559-9aeb-c336f690b2ca" }

,
"project": {
"self": "https://XXXX.atlassian.net/rest/api/2/project/10004",
"id": "10004",
"key": "TP",
"name": "TEST_PROJECT",
"projectTypeKey": "software",
"simplified": true,
"avatarUrls":

{ "48x48": "https://XXXX.atlassian.net/secure/projectavatar?pid=10004&avatarId=10418", "24x24": "https://XXXX.atlassian.net/secure/projectavatar?size=small&s=small&pid=10004&avatarId=10418", "16x16": "https://XXXX.atlassian.net/secure/projectavatar?size=xsmall&s=xsmall&pid=10004&avatarId=10418", "32x32": "https://XXXX.atlassian.net/secure/projectavatar?size=medium&s=medium&pid=10004&avatarId=10418" }

},
"assignee": {
"self": "https://XXXX.atlassian.net/rest/api/2/user?accountId=5e1d43d8bf70110ca24cb07c",
"accountId": "5e1d43d8bf70110ca24cb07c",
"avatarUrls":

{ "48x48": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=48&s=48", "24x24": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=24&s=24", "16x16": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=16&s=16", "32x32": "https://secure.gravatar.com/avatar/373ceafc6a98a1580ada81ade64e5e7c?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAD-0.png&size=32&s=32" }

,
"displayName": "Amrut Dengre Technical Engineer -XXXX",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"priority":

{ "self": "https://XXXX.atlassian.net/rest/api/2/priority/3", "iconUrl": "https://XXXX.atlassian.net/images/icons/priorities/medium.svg", "name": "Medium", "id": "3" }

,
"status": {
"self": "https://XXXX.atlassian.net/rest/api/2/status/10038",
"description": "",
"iconUrl": "https://XXXX.atlassian.net/",
"name": "To Do",
"id": "10038",
"statusCategory":

{ "self": "https://XXXX.atlassian.net/rest/api/2/statuscategory/2", "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" }

}
}
}
}
Mar 15, 2020 10:00:03 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook


Received Webhook callback from comment. Event type: comment_created

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:15:07 AM3/15/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:34:06 AM3/15/20
to jenkinsc...@googlegroups.com
Amrut dengre updated an issue
Change By: Amrut dengre
Attachment: amrut_config.png
Attachment: amrut_webhook.png

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:34:06 AM3/15/20
to jenkinsc...@googlegroups.com
 
Re: issue_updated trigger handler can't find "name" field in JSON

My Project name in Jira is "TEST_PROJECT" and Key is "TP".  Please refer amrut_config.png image to view the configuration done in jenkins job.Also find attached the webhook configuration(amrut_webhook.png) done at Jira end.

Below are the logs that I see on Jenkins end when I comment in my Jira issue - 

Mar 15, 2020 10:00:03 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook
Webhook event body:
Mar 15, 2020 10:00:03 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook
{
"timestamp": 1584266402422,
"webhookEvent": "comment_created",
"comment": {
"self": "https://XXXX.atlassian.net/rest/api/2/issue/14092/comment/13607",
"id": "13607",
"author": {
"self": "https://XXXX.atlassian.net/rest/api/2/user?accountId=5e1d43d8bf70110ca24cb07c",
"accountId": "5e1d43d8bf7010cab07c",
"avatarUrls":

,
"displayName": "Amrut Dengre Technical Engineer -XXXX",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"body": "NEWBUILD",
"updateAuthor": {
"self": "https://XXXX.atlassian.net/rest/api/2/user?accountId=5e1d43d8bf70110ca24cb07c",
"accountId": "5e1d43d8bf70110ca24cb07c",
"avatarUrls":

,
"displayName": "Amrut Dengre Technical Engineer -XXXX",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"priority":

{ "self": "https://XXXX.atlassian.net/rest/api/2/priority/3", "iconUrl": "https://XXXX.atlassian.net/images/icons/priorities/medium.svg", "name": "Medium", "id": "3" }

,
"status": {
"self": "https://XXXX.atlassian.net/rest/api/2/status/10038",
"description": "",
"iconUrl": "https://XXXX.atlassian.net/",
"name": "To Do",
"id": "10038",
"statusCategory":

{ "self": "https://XXXX.atlassian.net/rest/api/2/statuscategory/2", "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" }

}
}
}
}
Mar 15, 2020 10:00:03 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook

Received Webhook callback from comment. Event type: comment_created

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:35:04 AM3/15/20
to jenkinsc...@googlegroups.com
Amrut dengre edited a comment on Bug JENKINS-58987
Received Webhook callback from comment. Event type: comment_created !amrut_config.png!  

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:36:05 AM3/15/20
to jenkinsc...@googlegroups.com
Amrut dengre edited a comment on Bug JENKINS-58987
My Project name in Jira is "TEST_PROJECT" and Key is "TP".  Please refer amrut_config.png image to view the configuration done in jenkins job.Also find attached the webhook configuration(amrut_webhook.png) done at Jira end.

Below Attached are the logs that I see on Jenkins end when I comment from jenkins post commenting in my Jira issue
. ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:39:03 AM3/15/20
to jenkinsc...@googlegroups.com
Amrut dengre edited a comment on Bug JENKINS-58987
My Project name in Jira is "TEST_PROJECT" and Key is "TP".  Please refer amrut_config.png image to view the configuration done in jenkins job.Also find attached the webhook configuration(amrut_webhook.png) done at Jira end.

Attached are the logs (amrut_jenkins_Logs) from jenkins post commenting in Jira issue .

 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 15, 2020, 7:39:06 AM3/15/20
to jenkinsc...@googlegroups.com

wisen@ceilfors.com (JIRA)

unread,
Mar 15, 2020, 5:19:02 PM3/15/20
to jenkinsc...@googlegroups.com
Wisen Tanasa commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

Usama Tariq, Amrut dengre, Ashok T R, please read the comment that I've left above.

It has taken a while for the OpenCollective to be set up, it's now live at: https://opencollective.com/jira-trigger-plugin.

Hey Usama Tariq, I don't have the exact quote unfortunately, how much do you think this fix is worth to your business? That can be the guiding point to how much you want to contribute. The idea of contributing to OpenCollective is important as I'd like to emphasise that the contribution goes to the community (not me), hence people who are interested to become a maintainer in the future will be able to sustain their effort to keep this project healthy. I hope it makes sense.

wisen@ceilfors.com (JIRA)

unread,
Mar 15, 2020, 5:20:03 PM3/15/20
to jenkinsc...@googlegroups.com
Wisen Tanasa edited a comment on Bug JENKINS-58987
I've just reopened this issue as it's not fixed yet. I'm currently the maintainer of this plugin, and I genuinely struggle to maintain this as I no longer use Jenkins. So here's my current plan:
* I'm happy to review, merge, and publish a PR if someone can make a working change.
* If I'm involved in the fix, I need to justify my *personal time* (+I don't maintain this plugin for work+) that people are genuinely finding this plugin useful. I have set up an OpenCollective with
$100 £75 /month fundraising goal: [https://opencollective.com/jira-trigger-plugin]. That's roughly $5 £3 for 20 25 backers, which is less than 1% of the current active installation (3400). If your business genuinely find this plugin helpful, consider contributing to the collective. It will help me get off my couch and help people out.
** Please get familiar with the open source model. Think of
$5 £3 as you buying me a drink! Many of us are not paid to maintain this plugin and purely motivated because it was fun, it will help if you don't treat us like Jenkins support person. We're not part of CloudBees either.
* As [~oleg_nenashev] has mentioned, I'm happy for this plugin to be adopted. I've marked this plugin in the home page that I'm looking for a co-maintainer last year, so that I can help on board you and get comfortable with the codebase. Please reach out to me if you're interested in this, even just slightly!


These are how this issue must be tackled:
* Long term fix: completely remove JRJC and apply the Postel's Law i.e. the plugin shouldn't break when JIRA changes, especially when it's not used internally within the plugin.
* Med term fix: Upgrade JRJC. [~rodrigc] has kindly raised a PR [here in GitHub|https://github.com/jenkinsci/jira-trigger-plugin/pull/6]. However, it's hitting a build failure at the moment with {{NoClassDefFoundError}}.
* Short term fix: fill in "name" variable with hardcoded value to satisfy the older version of JRJC.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 1:22:04 AM3/16/20
to jenkinsc...@googlegroups.com

Hi Wisen Tanasa,

Yes, I did saw the OpenCollective and know that you had been one of the Top Contributors to this plugin . But just wanted to seek your guidance as what is going wrong from my end as I am seeing proper Webhook Callback Received messages in the jenkins logs.

Ashok T R,Usama Tariq Any help from you guys would be much appreciated.Atleast have a look at the logs and the configs I have shared.

 

wisen@ceilfors.com (JIRA)

unread,
Mar 16, 2020, 2:41:03 AM3/16/20
to jenkinsc...@googlegroups.com

Amrut dengre please raise another ticket in JIRA, it doesn't sound like you're facing the same issue with this issue here.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 2:51:12 AM3/16/20
to jenkinsc...@googlegroups.com

ashok.ravi92@gmail.com (JIRA)

unread,
Mar 16, 2020, 3:32:03 AM3/16/20
to jenkinsc...@googlegroups.com

Amrut dengre, you should check All jenkins log, i hope you will catch the error there.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:34:04 AM3/16/20
to jenkinsc...@googlegroups.com
Amrut dengre updated an issue
Change By: Amrut dengre
Comment:
Hi [~ceilfors]

I have configured my jenkins https url in jira's webhook. Also I am receiving "Received Webhook callback from comment. Event type: comment_created" in my jenkins logs when I add a comment in my Jira ticket.

However the build is not getting triggered. Could you please help me in fixing this?

We are on Jira cloud and my jenkins is running on Ec2 Instance.I have followed all the Troubleshooting steps listed on page [https://github.com/jenkinsci/jira-trigger-plugin]

I am not able to understand  "If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check." this part from troubleshooting steps.

Please let me know if anything else is needed from my end.

[~rlinux57],[~ashok_t_r] - Guys please guide me on this.

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:35:04 AM3/16/20
to jenkinsc...@googlegroups.com
Amrut dengre updated an issue
Change By: Amrut dengre
Comment:
My Project name in Jira is "TEST_PROJECT" and Key is "TP".  Please refer amrut_config.png image to view the configuration done in jenkins job.Also find attached the webhook configuration(amrut_webhook.png) done at Jira end.

Attached are the logs (amrut_jenkins_Logs)from jenkins post commenting in Jira issue .

 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:35:05 AM3/16/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:35:07 AM3/16/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:35:07 AM3/16/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 4:36:03 AM3/16/20
to jenkinsc...@googlegroups.com
Amrut dengre updated an issue
Change By: Amrut dengre
Comment: Hi [~ceilfors],

Yes, I did saw the OpenCollective and know that you had been one of the Top Contributors to this plugin :). But just wanted to seek your guidance as what is going wrong from my end as I am seeing proper Webhook Callback Received messages in the jenkins logs.

[~ashok_t_r],[~rlinux57] Any help from you guys would be much appreciated.Atleast have a look at the logs and the configs I have shared.

 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 5:59:02 AM3/16/20
to jenkinsc...@googlegroups.com
Amrut dengre commented on Bug JENKINS-58987
 
Re: issue_updated trigger handler can't find "name" field in JSON

Hi Ashok T R,

I could see below error in All Jenkins log. 

ust checked the 'All Logs' in jenkins from UI and can see below error - 

Error while serving https://XXXX.udchalo.com/jira-trigger-webhook-receiver/ org.codehaus.jettison.json.JSONException: JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:35) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:27) at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseOptionalArray(IssueJsonParser.java:166) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:222) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser.parse(WebhookChangelogEventJsonParser.groovy:35) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:63) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)

Caused: java.lang.reflect.InvocationTargetException at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)

 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 5:59:03 AM3/16/20
to jenkinsc...@googlegroups.com
Amrut dengre edited a comment on Bug JENKINS-58987
Hi [~ashok_t_r],


I could see below error in All Jenkins log. 

ust Just checked the 'All Logs' in jenkins from UI and can see below error - 

Error while serving [https://XXXX.udchalo.com/jira-trigger-webhook-receiver/|https://xxxx.udchalo.com/jira-trigger-webhook-receiver/] org.codehaus.jettison.json.JSONException: JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:35) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:27) at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseOptionalArray(IssueJsonParser.java:166) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:222) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser.parse(WebhookChangelogEventJsonParser.groovy:35) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:63) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)


Caused: java.lang.reflect.InvocationTargetException at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)

 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 16, 2020, 6:00:03 AM3/16/20
to jenkinsc...@googlegroups.com

Ashok T R,Usama Tariq, Please assist me in applying below fix.

Short term fix: fill in "name" variable with hardcoded value to satisfy the older version of JRJC.

what exactly needs to be done here? Is it that we need to hadcode something in webhook URL at Jira side?

ashok.ravi92@gmail.com (JIRA)

unread,
Mar 16, 2020, 6:12:03 AM3/16/20
to jenkinsc...@googlegroups.com

rlinux57@networkconfig.net (JIRA)

unread,
Mar 25, 2020, 10:03:05 AM3/25/20
to jenkinsc...@googlegroups.com

Hi,
If anybody get a fix of Jira Trigger Plugin, Please share the solution. 
Amrut dengre It's a fix at plugin side. 

amrut.dengre@udchalo.com (JIRA)

unread,
Mar 25, 2020, 10:06:03 AM3/25/20
to jenkinsc...@googlegroups.com

Hi Usama Tariq,

Yes. It seems so. Not sure when this would be fixed.

Will comment here in case I found a solution for this. Please comment if you found any.

rlinux57@networkconfig.net (JIRA)

unread,
Mar 30, 2020, 8:48:03 AM3/30/20
to jenkinsc...@googlegroups.com

rlinux57@networkconfig.net (JIRA)

unread,
Apr 1, 2020, 9:18:08 AM4/1/20
to jenkinsc...@googlegroups.com

Hi,
Please let me know how to submit a pull request with a fix for Jira-trigger plugin ?

wisen@ceilfors.com (JIRA)

unread,
Apr 2, 2020, 1:17:03 AM4/2/20
to jenkinsc...@googlegroups.com

amrut.dengre@udchalo.com (JIRA)

unread,
Apr 2, 2020, 1:57:03 AM4/2/20
to jenkinsc...@googlegroups.com

Hi Usama Tariq,

Did you managed to create fix for this?

Wisen Tanasa 

Please let us know once you merge the fix from Usama. 

 

amrut.dengre@udchalo.com (JIRA)

unread,
Apr 3, 2020, 12:57:04 AM4/3/20
to jenkinsc...@googlegroups.com

Hi Usama Tariq,

Could you please let me know if got the fix for jira-trigger-plugin.

ashok.ravi92@gmail.com (JIRA)

unread,
May 11, 2020, 12:49:02 AM5/11/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages