Update Jira status when Crucible review created

Chris Sparling February 7, 2013

What I'd like to do is to update an issue's status to something like "under review" when a Crucible review is created, then when the review is completed in Crucible, use it's workflow integration with Jira to set the status of the issue to "Ready for testing".

Updating the workflow in Jira after the review seems fairly straight forward but what I can't seem to figure out is how to update the issue's status automatically once the review has been created to set it's status. I know I could just update the issue using the workflow but it's inevitable people will forget to do this so I'd like to automate it.

1 answer

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2013

Two ways I can think of:

  1. Develop a Crucible event listener plugin which can act on All Review completed event and updates back JIRA (transition issue). I am guessing that you should be able to perform the operation on behalf of the user as the applications are trusted.
    1. https://developer.atlassian.com/display/FECRUDEV/Event+Listener+Module+Type
    2. http://docs.atlassian.com/fisheye-crucible/2.1.0/javadoc/com/atlassian/crucible/event/AllReviewersCompletedEvent.html
  2. Run an external script which does a REST call to crucible to get the reviews status and updates JIRA via REST. This is not a plugin, but runs periodically, say every 1 hour and checks the Crucible data.
Chris Sparling February 10, 2013

Thanks for the reply, I'll give that a try and let you know how I get on.

Suggest an answer

Log in or Sign up to answer