Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Crucible to Jira Cloud -- Linked Issues lookup fails with JSONException

Edited

Edit: I found Crucible bug CRUC-8454 which indicates no workaround for the error at present. 

-----

I am running Crucible version 4.7.0 and have been successfully linked with a Jira Cloud site for months. A couple of weeks ago, however, the "linked issue" field on the review details page stopped returning any results. The findJiraIssueAjax call which fires when typing in this field, now only returns the following failure message:

{
"errorMsg": "",
"worked": false,
"credentialsRequired":[],
"jiraExceptions":[
{
"msgHtml":"JIRA Server JIRA: ",
"name":"JIRA",
"serverUrl":"https://{my jira cloud site}.atlassian.net"
}
]
}

I enabled debug logging in Crucible, and found that it is throwing a JSONException error. What I am wondering is if Jira Cloud's rest api has been changed recently in some what that makes it incompatible with Crucible 4.7.0? There doesn't seem to be any problem with my Application Link itself, and I tried removing and creating the link again without any problems. It's just the ajax call to look up jira issues that fails. Anyhow, here are the server-side debug logs with the JSONException:

2020-02-24 15:12:20,428 DEBUG [qtp839998248-8078 ] fisheye JiraIssueServiceImpl-logException - Error retrieving issue 'TEST-123' from JIRA server at https://{my jira site}.atlassian.net/browse/TEST-123
com.atlassian.fisheye.jira.RemoteJiraException:

at com.atlassian.fecru.plugins.jirarest.restinvoker.JiraRestInvokerImpl.invoke(JiraRestInvokerImpl.java:67) [?:?]

...

...

...

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(CommentJsonParser.java:27) [?:?]
at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39) [?:?]
at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseArray(IssueJsonParser.java:146) [?:?]
at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:216) [?:?]
at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:88) [?:?]
at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$1.handle(AbstractAsynchronousRestClient.java:138) [?:?]
at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:179) [?:?]
... 243 more 

 Thanks!

2 answers

2 accepted

0 votes
Answer accepted

See https://jira.atlassian.com/browse/CRUC-8454

This is a known bug with no suggested workaround at this time.

0 votes
Answer accepted
DPK J Community Leader Feb 25, 2020

@Jake  As GDPR for Cloud API is kicking in information like 'name' and 'email' are not provided against User based fields like assignee, reporter etc.

If you are parsing data manually make sure you take care of this.

Thanks, that's a good point. However, I'm not doing any manual parsing. This is just the basic Crucible functionality, but it is an older version.

I've thought about upgrading to a newer version of Crucible but haven't found anything in the release notes yet to indicate that an upgrade will fix the problem.

Thanks again, I will keep this handy. But it looks like as far as the Crucible integration goes, it's just a waiting game -- I edited my original post with a Crucible bug report that says there's no known workaround yet...but at least it's been reported already. =)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

194 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you