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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.