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': 'https://......atlassian.net'}
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': 'john.smith@company.com'}]}

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

Hope this helps. 

Kirill

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

471 views 2 5
Read article

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