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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,864 views 2 7
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