Hey,
I am trying to create an EPIC using JAVA Client but I am getting the following exception - Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.
can you tell me how to overcome this exception because Summary field is already enabled in the screens scheme
Hi Nitesh - Welcome to the Atlassian Community!
Can you give some more details about the JAVA client you are using or the process you are actually using to create the issue.
I used the following dependencies
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>io.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>4.7.2</version>
</dependency>
And Made an authentication using the JIRA Token
and used the following to creating one EPIC
String issueKey = "";
try {
this.restClient = getJiraRestClient();
IssueRestClient issueClient = restClient.getIssueClient();
ProjectRestClient projectClient = restClient.getProjectClient();
IssueType issType = new IssueType(this.getJiraUri(),issueType,issueSummary,false,"",null);
IssueInputBuilder iib = new IssueInputBuilder();
iib.setProjectKey("EDX");
iib.setSummary("Test Summary");
iib.setIssueType(issType);
iib.setDescription("Test Description");
iib.setPriorityId(3L);
iib.setDueDate(new DateTime());
IssueInput issue = iib.build();
BasicIssue issueObj = issueClient.createIssue(issue).claim();
//return getIssue(issueKey);
return issueObj.getKey();
}
catch(Exception e) {
return issueKey;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benedikt - Welcome to the Atlassian Community!
You should open a new question with the specifics of your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure the summary is on the screen, and that the credentials for your REST call have the right to create issues in the project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding here for anyone having similar issues:
In my case the screen had the field (seen in the screen configuration of the project and the relevant issue type).
Next was using the permission helper to figure out other issues: https://confluence.atlassian.com/adminjiraserver/jira-admin-helper-938847791.html
It told me that the permissions were ok, but an error also mentioned to grant a Jira Service Management license to the account. This was the issue in my case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding here for anyone having similar issues:
In my case the screen had the field (seen in the screen configuration of the project and the relevant issue type).
Next was using the permission helper to figure out other issues: https://confluence.atlassian.com/adminjiraserver/jira-admin-helper-938847791.html
It told me that the permissions were ok, but an error also mentioned to grant a Jira Service Management license to the account. This was the issue in my case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.