Add organization details using API during ticket creation Edited

I am automating the jira ticket creation format using rest/api. I want to add the organization details, the organization column is not found in the ticket creattion page. Can someone suggest me on how to add the organisation details?

2 answers

It sounds like your field is not on the Screen for creating issues. Check your Screen Schemes and try adding the field if you haven't done so already.

Hello Thor,

Maybe this will help. I am writing in Python using jira module. Here's the code that worked for me to set the Organization in Jira Service Desk Cloud:

from jira import JIRA

options = {'server': ''}
jira = JIRA(options, basic_auth=('username','password'))

issue = jira.issue('TST-11')

# Set Request Participant (using the custom field id explicitly)
issue.update(fields={'customfield_12800': [{'name': ''}]}

# Set Organization (using custom field id explicitly)
issue.update(fields={'customfield_12100': [2]}) # 2 is the ID of my TestOrg

Hope this helps. 


Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot