Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


POST request to JIRA REST API to create issue of type Minutes

my $url2 = '';
my $create_issue_json = '{"fields": { "project": { "key": "NCG3D" }, "summary": "summary of my first issue", "versions": [{"Affects Versions/s": "v2.1"}, {"name": "v2.1"}], "Brands": ["Opel"], "components": "SW_VERSION", "description": "Creating an issue via REST API", "issuetype": { "name": "Minutes" }}}';

$tx1 = $jira_ua->post($url2 => json => decode_json($create_issue_json));
my $res1 = $tx1->res->body;

The above produces the following output

{"errorMessages":["Brands: Brands is required.","Detection: Detection is required."],"errors":{"components":"Component/s is required."}}

But these fields are available only in issue of type bug and not for type Minutes.

2 answers

1 accepted

0 votes
Answer accepted

Sorry, this is due to the configuration issue at Jira Admin side which I wasn't aware of before and now I've requested to correct(to remove mandatory option for Brands and Detection) and it works okay now.

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 08, 2022

Hi @Arjun 

Welcome to the Community!!

I'm mesmerized by the API Call

Can you try the below API and let me know if it works

pip install atlassian-python-api

jira = Jira( url='', token=jira_access_token )

= {'summary': 'New summary'} jira.issue_create(fields)


@Pramodh M

from atlassian import Jira

jira = Jira( url='', token='used PAT token' )

fields = {'project': 'sample', 'summary': 'sample issue'}

produces below o/p:

(base) D:\scripts>python
Creating issue "sample issue"
Traceback (most recent call last):
File "", line 6, in <module>
File "C:\Users\aeu5cob\AppData\Roaming\Python\Python38\site-packages\atlassian\", line 1166, in issue_create
return, data={"fields": fields})
File "C:\Users\aeu5cob\AppData\Roaming\Python\Python38\site-packages\atlassian\", line 309, in post
response = self.request(
File "C:\Users\aeu5cob\AppData\Roaming\Python\Python38\site-packages\atlassian\", line 242, in request
File "C:\Users\aeu5cob\AppData\Roaming\Python\Python38\site-packages\atlassian\", line 399, in raise_for_status
raise HTTPError(error_msg, response=response)
requests.exceptions.HTTPError: project: project is require


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events