Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use automation to set value from Organizations' custom field

flim
Contributor
November 22, 2023

I added a custom field "Client Type" in Organizations, I want to set that value to a custom field by Automation when the user set/edit the Organizations field.

I am trying but not sure how to set it up properly.

 

Screenshot 2023-11-23 125419.png

2 answers

flim
Contributor
November 23, 2023

How do I find the organizationId?

And how do I add a column of a organization custom field in Filters? I want to export all issues with a organization custom field.

Screenshot 2023-11-24 095014.png

flim
Contributor
November 23, 2023

I read this KB How to find any custom field's IDs but cannot find the organizationId, please advise. Thanks

 

Edit:

I found the organization id when I mouse over the name in organization list.

However, I got 404 error when I go to /rest/api/v1/organization/9/

When I check the issue page with /rest/api/latest/issue/<issue>, the organization link is

/rest/servicedeskapi/organization/9

When I check /rest/servicedeskapi/organization/9, I still not able to access the organization custom fields

Am I did something not correctly?

flim
Contributor
November 23, 2023

I found a different rest API to get organization: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-group-organization 

I can see the list of organization by /rest/servicedeskapi/organization

I guess the Get properties keys  will show a list of custom keys, but I got an empty list.

0 votes
Ste Wright
Community Champion
November 22, 2023

Hi @flim 

As far as I know, given this is quite a new feature, this isn't possible at this point.

You can use these attributes in Automation, but only via JQL using the available functions

Ste

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events