We have found this documentation and have added these detail fields under the organizations:
https://support.atlassian.com/jira-service-management-cloud/docs/manage-organization-detail-fields/
But is there a way to use API requests to update these fields as well? I only found Property values but this does not seem to be the same thing, we need the detail field API requests.
I'm on the search for the same thing. This documentation looks like it could be an answer, but I still haven't been able to get it to work: https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/
I cannot understand why this isn't part of the JSM API. Boggles the mind.
Hi @Kevin Smith and @Jaanika Talvistu
Try to see it the put property option can achieve this.
The call will set new information, there is no option to update I think, so the existing will be overwritten.
The following request at Atlassian seems on this topic, you could follow this and see if any progress will be mad on it. JSDCLOUD-5966
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kevin Smith and @Jaanika Talvistu did you find a solution?
I'm just trying to GET the organization detail fields using the REST API.
Although my organizations do have several detailed fields, the Get Property Keys rquest https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-property-get returns an empty list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gwenaël Durand @Kevin Smith @Jaanika Talvistu
You can create detail fields under the organizations, these are the same as in the API mentioned organization proerties, as the have been given an ID on creation.
https://support.atlassian.com/jira-service-management-cloud/docs/manage-organization-detail-fields/
You can NOT set values for these fields via the API, you only get details about the field and you are able to create them via the JSM API,
Also the values you set in those fields/properties, is not searchable in JQL or via the API.
See this open issue at Atlassian: https://jira.atlassian.com/browse/JSDCLOUD-5966
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam ,
thanks for your feedback. This is exactly what I try to do. Let say I have the following organization in my project. I'm trying to get the values of the fields "Product", "Version..." etc...
Here is what I do:
* Retrieve the organization list using a GET on https://mydomain.atlassian.net/rest/servicedeskapi/organization
* then I pick the one in the image above (let's say ID=39) and request this organisation as follows: https://mydomain.atlassian.net/rest/servicedeskapi/organization/39
This returns: {"id":"39","name":"Test Inc.","_links":{"self":"https://mydomain..../organization/39"}}
Now, my understanding is that you can get the list of the organization detail fields (their keys, actually) using: https://mydomain.atlassian.net/rest/servicedeskapi/organization/39/property
But this does not return anything else but: {"keys":[]}
Whatever the organisation I'm trying...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same behaviour here.
I would urge you to raise a bug at Atlassian Support on this en mention the option given in the API don't functon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To access the detail fields, please see the Customer Service Management APIs:
https://developer.atlassian.com/cloud/customer-service-management/rest/v1/intro/#about
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct,
I just got feedback from Atlassian support: they seem to confirm they have an issue with the Service Desck REST API above.
But the fields are available thought their CSM API on the link you mentionned.
Works for me, at least to retrieve all the fields at once in a big JASON
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which API call have you used to retrieve the fields from CSM API? I can't seem to locate the one that would be helpful in this case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adam,
You can get the property using this endpoint :https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/#api-api-v1-organization-organizationid-get
using: --url '{host}/{basePath}/api/v1/organization/...
* host is always https://api.atlassian.com
* base path is jsm/csm/cloudid/{cloudId},
cloud site Id is given by: https://<your domain>.atlassian.net/_edge/tenant_info
So, end point to get the Organization details is : https://api.atlassian.com/jsm/csm/cloudid/<PUT YOUR CLOUD SITE ID>/api/v1/organization/<ORGANIZATION ID>
Gwenaël
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But what @Gwenaël Durand explained is a very valuable information that should be also somehow available in documentation. Is it already there?
By the way I was struggling with that API call and for me it also worked using this advice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the fiels are updated from the JSM project itself, from the Organization details.
You can edit the value of the field directly on the left side, or add new fields in "Edit details" menu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, sorry I may have missunderstood your question: i did try to update from the API.
This could be useful, also. If you find out, please share. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes thanks for that but I knew that @Gwenaël Durand
But once I have the fields how can I fill them using the API?
This implies you can enter the values using the API: https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/#api-api-v1-organization-organizationid-details-put
But I can't get it to work, do you have that working and if so could you provide that call? (without personal details ofc)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I keep getting: Error updating organization 6: {"errorMessage":"Internal server error","errors":["INTERNAL_SERVER_ERROR"],"statusCode":500}
Back, not really something I can work with
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I hope I can shed some light for the people who are still having this problem
I have managed to both get the organization details and set the value for an organization detail using the customer service management API:
GET
config = {
'base_url': f"https://api.atlassian.com/jsm/csm/cloudid/your-cloud-instance-id/api/v1/organization/your-organization-id",
'email': 'your-email/user',
'api_token': 'your api-token/password'
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
query = {
"fieldName": "Account Manager"
}
payload = json.dumps(
{"values": ["your new value"]}
)
response = requests.get(url=config['base_url'], auth=HTTPBasicAuth(config["email"], config["api_token"]),
headers=headers)
PUT
config = {
'base_url': f"https://api.atlassian.com/jsm/csm/cloudid/your-cloud-instance-id/api/v1/organization/your-organization-id/details",
'email': 'your-email/user',
'api_token': 'your api-token/password'
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
query = {
"fieldName": "Account Manager"
}
payload = json.dumps(
{"values": ["your new value"]}
)
response = requests.put(url=config['base_url'], auth=HTTPBasicAuth(config["email"], config["api_token"]),
headers=headers, data=payload, params=query)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Danny Bouman Make sure you're obtaining the correct cloud ID from https://confluence.atlassian.com/jirakb/how-to-find-cloud-site-id-1272283178.html#:~:text=Solution,atlassian.net%2F_edge%2Ftenant_info
I was getting the 500 Internal Server Errors too, and it was because I was literally loading https://my-site-name.atlassian.net/_edge/tenant_info to get my cloud ID and not replacing my-site-name in the URL with my company's site name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you are looking to use the JSM API and the put property option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to do it with the explanation from here: https://jira.atlassian.com/browse/JSDCLOUD-4605
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, I don't need to update the name of the organization. I need to update the detail fields under the organization.
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.