Package hudson.plugins.jira
Class JiraJobAction
java.lang.Object
hudson.plugins.jira.JiraJobAction
- All Implemented Interfaces:
Action
,ModelObject
JiraJobAction is to store a reference to the
JiraIssue
that represents work
being done for a WorkflowJob
(branch or PR) belonging to a MultiBranchProject
Any branches with the whole key in the name or after a prefix will have this action attached.
e.g. "JENKINS-1234" and "feature/JENKINS-1234" will have this action with the issue JENKINS-1234 referenced-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIssue()
static void
Adds aJiraJobAction
to aWorkflowJob
if it belongs to aMultiBranchProject
and its name contains an Jira issue key
-
Constructor Details
-
JiraJobAction
-
-
Method Details
-
getIssue
- Returns:
- issue representing the job
-
getServerURL
- Returns:
- url of the Jira server
-
setAction
Adds aJiraJobAction
to aWorkflowJob
if it belongs to aMultiBranchProject
and its name contains an Jira issue key- Parameters:
job
- to add the property tosite
- to fetch issue data- Throws:
IOException
- if something goes wrong fetching the Jira issue
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-