Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

getCommentResolution not available in API

Thomas Moeck
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2017

Hi there,

although the new feature is documented for version 4.4.0 (see here: https://docs.atlassian.com/fisheye-crucible/4.4.0/javadoc/com/atlassian/crucible/spi/services/ReviewService.html#getCommentResolution-com.atlassian.crucible.spi.PermId-), when I try to use this function in the Crucible API, I get:

cannot find symbol
symbol: method getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.VersionedLineCommentData>)
location: variable reviewService of type com.atlassian.crucible.spi.services.ReviewService

I'm using Fisheye/Crucible version 4.4.0 from my local SDK. My code:

if (mComment instanceof VersionedLineCommentData)
{
    VersionedLineCommentData versionedLineComment = (VersionedLineCommentData)mComment;
    reviewService.getCommentResolution(versionedLineComment.getPermaId());

So, it seems to be a bug in the API. The function is documented but not present.

Did someone have the same issue? Is there a resolution?

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 19, 2017

Are you sure you have FishEye 4.4.0 dependency in your pom.xml?

 

I checked binaries from 4.4.0 installation and this method is present:

 

$ jar -xf fecru-4.4.0/lib/atlassian-fisheye-api-4.4.0-20170412122150.jar com/atlassian/crucible/spi/services/ReviewService.class

$ javap com/atlassian/crucible/spi/services/ReviewService.class | grep getCommentResolution

  public abstract com.atlassian.crucible.spi.data.CommentResolutionData getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.CommentData>);

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events