Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can not create issue without description (use jira API)

Сергей Жуков November 7, 2019

Is description field mandatory?

I use jenkins plugin "jira step" to create new issue (of course it can be jenkins plugin error). Plugin call jira API

My pipeline code

def newIssue = [fields: [
   project: [key: 'DOM2019PRE'],
   issuetype: [id: issueType.id],
   summary: 'AA'
]]

response = jiraNewIssue issue: newIssue, site: GlobalParams.jiraName
echo response.successful.toString()
echo response.data.toString()

as the result i see

JIRA: Site - JTC - Creating new issue: IssueInput(update=null, fields={project={key=DOM2019PRE}, issuetype={id=10200}, summary=AA})
Error Code: 400
Error Message: {"errorMessages":[],"errors":{"description":"Field 'description' cannot be set. It is not on the appropriate screen, or unknown."}}

 

1 answer

0 votes
lube219
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2021

I have the same problem.
When I create the issue via the UI the description field cannot be set and is not required.
But I am not able to create an issue via jiraNewIssue without description...

Suggest an answer

Log in or Sign up to answer