How can we use Organization fields in other Jira projects?

Jonathan Porta October 15, 2024

I've recently discovered the new fields in the Organization feature. It seems very interesting but I am not able to use them properly.

My use case it the following:

I have an internal ticket automatically created from a JSM request on a specific transition. I would like to set a custom field in this newly created issue (in a non-JSM project).

I have tried to do it in JSON, but I don't know how to access these fields... issue.Organization.MyField? issue.cf10002.MyField?

Is there really a way to use these properties or are they quite useless for the moment?

1 answer

2 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2024

Hi @Jonathan Porta 

Organization filed can only be used in JSM projects.

This is not usable in other project types.

The organization field is related to the customer being associated with that organization.

Setting the field organization automatically is then based on the users email domain.

But I could be understanding your request wrong and and you simply want the value ote organization stored in another CF text field in a non JMS project.

Then try the following smart values:

  • {{issue.Organizations.first.name}}
  • {{issue.Organizations.first.id}}
Jonathan Porta October 24, 2024

Thank you for your answer!

I think you understood correctly. I'm ok with the organization being stored in the JSM project but I would like to get the value of a custom property defined in a organization with a smart value to recopy it to a custom field in another project. We have a field called "key client" defined at organization level, and I would it copy in the development ticket linked to the service ticket.

The smart values you listed are the native properties right? Is there a way to access custom properties?

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2024

HI @Jonathan Porta 

No you can't access or create custom ones,

These options are native and the only available ones to be used within automation.

Jonathan Porta October 24, 2024

You can create custom properties in the Organizations module, but you can't access them through smart values?

 

Pretty much useless so...

 

By the way thank you for your help.

 

Like Marc - Devoteam likes this
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2024

Hi @Jonathan Porta 

Seems that way, but properties are not fixed option, but free form options to set.

So having smart values for options out of the systems control isn't an option.

Jonathan Porta October 24, 2024

True, but I would have imagined they used a similar system to custom fields, so we can have fields to better qualify our customer across the different projects.

I mean the alternative is to use the pipeline type project and create a Jira ticket per customer... But imagine the mess after that, if you want to link a ticket to a customer it is now a issue-to-issue link type...

So in my case, it means that instead to store these information in Jira I will have to build a Webservice storing our customer profiles and call it with HTTP request during the automation. 

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2024
Jonathan Porta October 25, 2024

Sadly, properties are not the same as detail fields. Properties can be accessed only by API, and there are not displayed in Jira UI anywhere.

By the way there seems to be a matching method to access detail fields in Customer Service API : The Customer Service Management REST API (atlassian.com)

But for the moment, it only returns me 404...

 

EDIT: Ok the URL was definitely not correct.  Now I have to parse the json returned as my fields are Single Select :-)

Suggest an answer

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

Atlassian Community Events