Details
-
Improvement
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
Linux
Description
Need the Jenkins 'Create Issue type' plugin to be more dynamic / configurable to allow for different default jira issue type.
Utilizing Jenkins Jira plugin version 1.39
Currently, jenkins project will only create an issue type of 'Bug'. We need the default configurable to align with the issue types created in jira for the project. Ideally an Issue Type drop-down box.
Attachments
Issue Links
- duplicates
-
JENKINS-31164 Issue Type must be selectable from fetched dropdown
-
- Closed
-
To be more exact we would like the "issue.setType("1") call be configurable like the other fields: Project Key | description | summary | assignee within the following code:
https://github.com/jenkinsci/jira-plugin/blob/master/src/main/java/hudson/plugins/jira/JiraSession.java
public RemoteIssue createIssue(String projectKey, String description, String assignee, RemoteComponent[] components, String summary) throws RemoteException
{ RemoteIssue issue = new RemoteIssue(); issue.setProject(projectKey.toUpperCase()); issue.setDescription(description); issue.setSummary(summary); issue.setAssignee(assignee); issue.setType("1"); issue.setComponents(components); RemoteIssue createdIssue; createdIssue = service.createIssue(token, issue); return createdIssue; }