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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

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

LexoRankChangeEvent scriptrunner Edited

I try to develop replanning Gantt chart (prepared by Structure and Structure Gantt) with scriptrunner script. I chose custom listener with LexoRankChangeEvent to detect rank change and replan chart(change links “finish to start”). Event, when I write “event.something”, show error and point to class com.atlassian.greenhopper.service.lexorank.balance.LexoRankChangeEvent to check available methods and properties, but I can’t find API doc for this class. Where is it?

Another workaround will be detect issue update and check issue log.  But I am not sure that it will be a good wayB653436D-6F32-4829-A98F-D4E79B083F61.png

1 answer

1 accepted

0 votes
Answer accepted

Hi @Alexander Raymukanov 

I looked into that class methods and I found that you cant get the issue itself, instead you can retrieve its id. Check the code below:

IssueManager issueManager = ComponentAccessor.getIssueManager()

MutableIssue issue = issueManager.getIssueObject(event.getIssueId())

Hope you find it usefull. 

Hi @alex.snako .

thanks for information.

can you point me on class documentation? 

Regards,

Alexander

Suggest an answer

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

Learn how to request and manage app requests in the Marketplace

G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...

43 views 1 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