getCommentResolution not available in API

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

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

269 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you