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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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
Published in Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

240 views 5 13
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