Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Use script field on JSD customer portal

Why I cannot add script fields on JSD customer portal? Is it a setting I have to set or it is not possible to use script fields on portal?

Thank you

2 answers

Hi Anna, Daniel,

Don't know if you finally found a solution but I think what you're looking for can be achieve using Behaviours : https://scriptrunner.adaptavist.com/latest/jira/behaviours-conversions.html

I managed to initialize several fields in a customer portal using that solution.

Hope this helps

Hi Anna, 

You cannot add script fields to the portal page. Scripted fields are generally supposed to take info from the current issue context and the request portals are normally used for creating in which there will be no data for it to compute. 

This is a list of the supported field types: https://confluence.atlassian.com/jirakb/list-of-supported-custom-fields-for-request-types-in-jira-service-desk-customer-portals-867182673.html

You can read more about script fields here: https://scriptrunner.adaptavist.com/latest/jira/scripted-fields.html

Regards,

Katy

Katy, 
I don't really understand this.
There is a real need to be able to add scripted fields in portal pages.

For example, I would like to have people selecting from a group list. That groups being filtered in order to display only the necessary/useful groups for that page.
I can't do that. 
If I need this, I've (I don't do this) copy the groups name into a "Select lists" instead which is a non-sense from a global management point of view.

Daniel

Hi Daniel, 

Scripted Fields require data to pull from. If they are starting a new ticket in the portal there is no data to pull from yet

Database pickers and issue pickers can currently be used on the portal page. 

Regards,

Katy

Katy,

when is the Groovy script executed in the custom field?

How does it work for the other Group selection native field?

It should be possible to execute the script in the scripted field at display time no?

Cheers

Daniel

Hi Daniel,

I would recommend you take a look here: https://www.adaptavist.com/doco/display/SFJ/Cannot+Add+Script+Fields+to+Support+Portal+Request+Forms

If you have further questions please submit a ticket in our support portal. 

Regards,

Katy

Katy,

Thanks for the link but this does not help provide me a solution nor an idea if either this will be possible in the future and when/which release.

Can you guys from Adaptavist check with Service Desk or Atlassian directly?

This could help.

Thanks

Hi Daniel,

We have no active plans to change this based on how Atlassian's hooks and API's work currently. If you have questions on if Atlassian will be changing anything in regards to this we would advise to ask them directly: support.atlassian.com

I hope that helps. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

203 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you