Forums

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

Display only selective values from custom field dropdown to all customers from specific organisation

Ninad Desai
Contributor
September 28, 2021

I am having a use case where I am trying to develop a customer portal with custom fields and values in Jira service management.

In that, I have a custom field with a drop-down of multiple values (let's say value1, value2, value3,value4,value5,..).  I have created a different organization for different customers/users (like Org1, Org2, Org3) which contain different customers/users.

When customers/users of Org1  organization, log in to the customer portal, I want to make sure that let's say value1 and value2 from the drop-down be visible to them  and value 3 or 5 from the drop-down to be visible to only customers/users from Org2 and so on. 

 

Is there any kind of shell/python script(preferable) or any other scripting option possible to develop such thing in Jira service management (cloud) .

p.s: I am newbie to groovy scripting but knows python and shell scripting well.

3 answers

1 vote
Jonathan Porta December 7, 2021

I have the same problem here, but on a standard field. Are contexts also available for standard fields or is it limited to custom fields?

 

My use case is to map different values of Priority on different projects. It was working on our hosted instance of JSD, but we lost it with the cloud migration.

0 votes
Nic Brough -Adaptavist-
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.
September 28, 2021

Jira field options are not controlled by who is looking at them, the options are controlled by the type of issue being raised and project they are in.

Ninad Desai
Contributor
September 28, 2021

Hi @Nic Brough -Adaptavist- ,


Could you please elaborate little bit more as I didn't get it completely.
(specifically "type of issue being raised and project they are in." )


Regards,
Ninad

Nic Brough -Adaptavist-
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.
September 29, 2021

I can't think of a way to explain it differently, beyond rephrasing it - "the option list you see in a custom field is chosen by the project and issue type, not by user".

Maybe an example would help:

Imagine a field called "colour"

  • In project PRINTER, all issues will offer values of Cyan, Magenta, Yellow and Black.
  • In project SHOWUS, if you create an issue of type RAINBOW, you will be offered Red, Orange, Yellow, Green, Blue, Indigo, and Violet
  • In project SHOWUS, if you create an issue of type DISPLAY, you will be offered Red, Green and Blue
Ninad Desai
Contributor
September 30, 2021

Okay, thanks @Nic Brough -Adaptavist- .

So If I understand well, for my need of having different specific values visible in the drop-down for different customers/organizations, I should :

1)Create separate Jira project for those separate customers/organzation i.e group of users and then
2)In each project, create the same customer portal with custom field (which will have in dropdown, only those values that are specific to that organization/group of users/customers)


Hope this is what you're suggesting as it makes sense to me now :) .

Nic Brough -Adaptavist-
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.
September 30, 2021

Yes, that will indeed do what you describe.  I had not really suggested it directly, but you're spot on.

To paraphrase it as I think of it, with my example:

You create projects 1 and 2, allowing one set of customers into only project 1, and another into only project 2.  You add the Colour custom field to both, but you have two "contexts" for the field.  Context 1 is for project 1 and contains the options red, green and blue, and Context 2 is for project 2, and contains options cyan, magenta, yellow and black.

Like Ninad Desai likes this
Ninad Desai
Contributor
September 30, 2021

Okay, thanks for this quick guidance Nic and it's much appreciated. I will try to implement it and then accept this as the answer. 

Ninad Desai
Contributor
September 30, 2021

Meanwhile, is there a way I can import a customer portal designed inside one project to other projects?

Regards,
Ninad

0 votes
Ninad Desai
Contributor
September 28, 2021

Hello, @Darryl Lee /Atlassian Community team,

Can someone please guide me on this or in case, suggest an alternate way to achieve this in a comparatively easy and efficient way.

Regards,
Ninad

Nic Brough -Adaptavist-
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.
September 29, 2021

There is no "easy" way to do this - you will need to write a completely new custom field type, including all the configuration settings and user handling code needed.  This is not a small project.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events