Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,377
Community Members
 
Community Events
165
Community Groups

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

0 votes

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

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

319 views 0 10
Join discussion

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