net.thucydides.plugins.jira.service
Class JiraIssueTracker

Package class diagram package JiraIssueTracker
java.lang.Object
  extended by net.thucydides.plugins.jira.service.JiraIssueTracker
All Implemented Interfaces:
IssueTracker

public class JiraIssueTracker
extends Object
implements IssueTracker

Update comments in JIRA issues with links to Thucydides reports. This plugin will use the JIRA username and password provided in the jira.username and jira.password system properties. The URL of the JIRA instance should be provided using the jira.url system property.


Constructor Summary
JiraIssueTracker(JIRAConfiguration jiraConfiguration)
           
JiraIssueTracker(org.slf4j.Logger logger, JIRAConfiguration jiraConfiguration)
           
 
Method Summary
 void addComment(String issueKey, String commentText)
          Add a comment to the specified issue.
 void doTransition(String issueKey, String workflowAction)
           
 List<IssueComment> getCommentsFor(String issueKey)
          Return the comments associated with the specified issue.
 String getStatusFor(String issueKey)
          Return the current status for a given JIRA issue.
 String toString()
           
 void updateComment(IssueComment issueComment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JiraIssueTracker

@Inject
public JiraIssueTracker(JIRAConfiguration jiraConfiguration)

JiraIssueTracker

public JiraIssueTracker(org.slf4j.Logger logger,
                        JIRAConfiguration jiraConfiguration)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

addComment

public void addComment(String issueKey,
                       String commentText)
                throws IssueTrackerUpdateException
Add a comment to the specified issue. The author is the JIRA user specified in the *jira.user* system property.

Specified by:
addComment in interface IssueTracker
Parameters:
issueKey - the unique key identifying the issue to be commented.
commentText - text of the comment.
Throws:
IssueTrackerUpdateException

getCommentsFor

public List<IssueComment> getCommentsFor(String issueKey)
                                  throws IssueTrackerUpdateException
Return the comments associated with the specified issue.

Specified by:
getCommentsFor in interface IssueTracker
Parameters:
issueKey - Identifies the specified issue.
Returns:
the list of comments.
Throws:
IssueTrackerUpdateException

updateComment

public void updateComment(IssueComment issueComment)
Specified by:
updateComment in interface IssueTracker

getStatusFor

public String getStatusFor(String issueKey)
                    throws IssueTrackerUpdateException
Return the current status for a given JIRA issue. Note that the status value depends on the issue workflow, so can be very variable.

Specified by:
getStatusFor in interface IssueTracker
Parameters:
issueKey -
Returns:
Throws:
IssueTrackerUpdateException

doTransition

public void doTransition(String issueKey,
                         String workflowAction)
                  throws IssueTrackerUpdateException
Specified by:
doTransition in interface IssueTracker
Throws:
IssueTrackerUpdateException


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.