Search code examples
testingintegrationjirathucydides

How to configure output report for thucydides&jira plugin?


I'm trying to integrate thucydides with jira, using thucydides-jira-plugin 0.9.262. I want to get list of user stories (we have no epics in jira workflow) from jira to my thucydides report (like here - feature covereing section) but failed. I have configurated thucydides.properties with default values

jira.url=http://jira.test.ru    
jira.project=test    
jira.username=testuser   
jira.password=testpassword     

Links form report to jira works fine.

In log I see these:

[INFO] Reading requirements from net.thucydides.plugins.jira.requirements.JIRARequirementsProvider@342ee097
[INFO] Loading root requirements: issuetype = epic and project=test
[INFO] Requirements found:[]
[INFO] Generating release reports for: []

Is there any way to change issuetype for root requirements? May be extended manual for integrating thucydides with jira somewhere exists?


Solution

  • Find the class net.thucydides.plugins.jira.requirements.JIRARequirementsProvider


    modify the method rootRequirementsJQL()

    private String rootRequirementsJQL() {
    
           return "issuetype = epic and project=" + getProjectKey();
        }
    

    There you go!

    The relevant Code can be found here Grepcode

    A good Doumentation can be found here wakaleo


    EDIT: You can add any JQL you want here.