Package com.atlassian.jira.issue
Class IssueKey
java.lang.Object
com.atlassian.jira.issue.IssueKey
Represents an Issue Key, allowing you to parse it into its Project key and Issue number components.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IssueKey
-
IssueKey
-
-
Method Details
-
getProjectKey
-
getIssueNumber
public long getIssueNumber() -
toString
-
from
Creates an IssueKey object form the given issue key String.This does some validation on the format of the given String. It must contain a dash ('-'), and the substring following the final dash must be a valid number. It validates that there is at least one character preceding the dash, but it does not validate that this is an existing key on this instance of JIRA.
- Parameters:
key- The issue key as a string. eg "ABC_X20-1193"- Returns:
- the corresponding IssueKey object.
- Throws:
IllegalArgumentException- if the given String is not a valid JIRA Issue key
-
format
-
format
-
isValidKey
Returns true if the key is considered "valid"- Parameters:
issueKey- the key- Returns:
- true if the key is considered "valid"
-