Using JiraRobot Library for creating an issue - Getting JIRAError: HTTP 400: "project is required"

Hi All,

Tried to create an issue via JiraRobot Library by passing the required parameters as input. Executed the test case, but got the following error:

20200729 18:01:05.709 : INFO : ${issuestring} = {‘project’: {‘key’: ‘Testing COE’}, ‘summary’: ‘Test Jira Robot’, ‘description’: ‘Testing Jira Robot issue creation’, ‘issuetype’: {‘name’: ‘Task’}}
20200729 18:01:05.758 : INFO : {‘project’: {‘key’: ‘Testing COE’}, ‘issuetype’: {‘name’: ‘Task’}, ‘description’: ‘Testing Jira Robot issue creation’, ‘summary’: ‘Test Jira Robot’}
20200729 18:01:05.768 : FAIL : JIRAError: HTTP 400: “project is required”
https://jira.dv. .com/rest/api/2/issue
Ending test: JiraIntergrationWithRobotFramework.TestSuites.TestSuite.JIRARobot Test

Can anyone help me resolve this issue as I have followed the right steps.
I am using:
Python: 2.7.15
Robot framework: 3.1.2
jira:0.25
JiraRobot: 1.0

Thanks!

I believe you are missing some value for Project. This is not a Robot Framework fault. Perhaps the key is not Testing COE but usually a 4 letter value? Just guessing here.

Hey Hobet, Thanks for replying.

I tried using the 4 letter key value now, and I am still getting the same issue. I understand that this is not the framework’s fault. Just trying to know where I have gone wrong as this is not working for me.

I have attached the code which I have worked upon for your reference. And below is the error which I am facing:

20200730 10:13:29.448 : INFO : ${issuestring} = {‘project’: {‘key’: ‘TCOE’}, ‘summary’: ‘Test Jira Robot’, ‘description’: ‘Testing Jira Robot issue creation’, ‘issuetype’: {‘name’: ‘Task’}}
20200730 10:13:29.577 : INFO : {‘project’: {‘key’: ‘TCOE’}, ‘issuetype’: {‘name’: ‘Task’}, ‘description’: ‘Testing Jira Robot issue creation’, ‘summary’: ‘Test Jira Robot’}
20200730 10:13:29.585 : FAIL : JIRAError: HTTP 400: “Field ‘description’ cannot be set. It is not on the appropriate screen, or unknown., Field ‘summary’ cannot be set. It is not on the appropriate screen, or unknown.”
https://jira.dv. .com/rest/api/2/issue
Ending test: JiraIntergrationWithRobotFramework.TestSuites.TestSuite.JIRARobot Test
Creating_An_Issue_in_Jira_With_RobotFramework.robot (1.9 KB)

It would be really helpful if you can help me out in this.

Thanks!

Did you ever figure this out?