Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.

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

1 answer

1 vote
John Funk Community Leader Dec 21, 2021

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;
}




Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

816 views 24 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you