Modifying "Export to CSV" of review history

Is there an easy way to modify the contents/format of the review history "Export to CSV" from a Crucible review (that is, not going through the back end)? Specifically, we'd like to modify it so that defects are clearly marked as such instead of just as a "comment", with their ranking and classification, and any Jira issue # that may have come from it. We need to have some form of evidence we're conducting these reviews for when auditing happens, and the output as is doesn't quite fulfill our needs.

2 answers

1 accepted

1 vote

Hi Kattie,

I'm afraid the CSV report you mentioned is not customisable at the moment. But there is a way to retrieve the informations you are looking for in structured form using REST API. Take a look at Crucible REST API https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html, specifically the GET /rest-service/reviews-v1/{id} call. For defect like https://fisheye4.atlassian.com/cru/CR-22#c114you can load details of CR-22 review by hitting https://fisheye4.atlassian.com/rest-service/reviews-v1/CR-22/detailsendpoint. Interesting bits you get back:

{
 ...
    "stats": [
        {
            "defects": 1,
             ...
        }
    ],
 ...
    "versionedComments": {
        "comments": [
            {
                "createDate": 1340815287263,
                "defectApproved": false,
                "defectRaised": true,
                ...
                "message": "System.exit() is problematically when using embedded glassfish.",
               ...
                "metrics": {
                    "classification": {
                        "configVersion": 1,
                        "value": "Risk-prone"
                    }
                },
               ...
            }
        ]
    }

Hope that helps,
Piotr

That did help get us going in the right direction, thank you!

no worries, I'm glad it helped.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

60 views 2 6
Read article

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