com.atlassian.jira.jql.util.JqlIssueKeySupport |
![]()
|
Provide JQL with some helper functions when dealing with Issue Keys.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines is the passed issue key is valid for JIRA.
| |||||||||||
Return the numeric part of the issue key.
| |||||||||||
Return the project key part of the issue key.
|
Determines is the passed issue key is valid for JIRA. It does *NOT* determine if the issue actually exists within JIRA.
issueKey | the issue key to validate. Null will be considered an invalid key. |
---|
Return the numeric part of the issue key. Assumes that the passed key is valid. The method will return
-1 on a parsing error, however, this cannot be used to determine if a key is valid as some invalid keys
may parse correctly. The isValidIssueKey(String)
method can be used to determine if a key is invalid
or not.
issueKey | the issue key to parse. A null key will return -1. |
---|
Return the project key part of the issue key. Assumes that the passed key is valid. The method will return
null on a parsing error, however, this cannot be used to determine if a key is valid as some invalid keys
may parrse correctly. The isValidIssueKey(String)
method can be used to determine if a key is invalid
or not.
issueKey | the issue key to parse. A null key will return null. |
---|