Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-31164: Configurable issue priorityId, typeId and actionIdOnSu…
…ccess Motivation: When Jenkins creates a JIRA ticket the priority and type ids are hardcoded and may break ticket creation as noted in JENKINS-31164. Modifications: Allow the admin to configure issue priority id and type id from the Jenkins job configuration. Allow the admin to configure actionId on success which allows the plugin to automatically resolve or close tickets. Result: Support for JIRA where the type ids are different and greater flexibility when setting up workflows.
- Loading branch information
Showing
8 changed files
with
185 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 17 additions & 8 deletions
25
src/main/resources/hudson/plugins/jira/JiraCreateIssueNotifier/config.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form"> | ||
<f:entry title="${%Jira Project Key}" field="projectKey"> | ||
<f:entry title="${%Jira Project Key}" field="projectKey"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry title="${%Assignee}" field="assignee"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry title="${%Description Of Test}" field="testDescription"> | ||
<f:textarea/> | ||
</f:entry> | ||
<f:entry title="${%Assignee}" field="assignee"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry title="${%Description Of Test}" field="testDescription"> | ||
<f:textarea/> | ||
</f:entry> | ||
<f:entry title="${%Component Name}" field="component"> | ||
<f:textbox/> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry title="${%Issue Priority}" field="priorityId"> | ||
<f:select/> | ||
</f:entry> | ||
<f:entry title="${%Issue Type}" field="typeId"> | ||
<f:select/> | ||
</f:entry> | ||
<f:entry title="${%Action Id On Success}" field="actionIdOnSuccess"> | ||
<f:number/> | ||
</f:entry> | ||
</j:jelly> |
4 changes: 4 additions & 0 deletions
4
src/main/resources/hudson/plugins/jira/JiraCreateIssueNotifier/help-actionIdOnSuccess.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div> | ||
<strong>Optional</strong> <br/> | ||
The JIRA issue status will transition with the configured workflow action id when the build status returns success, for no transition set '0'. | ||
</div> |
Oops, something went wrong.