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

Use script field on JSD customer portal

Anna Protopapa
Contributor
April 15, 2019

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

1 vote
Eddy Fras
Contributor
June 8, 2020

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

0 votes
Katy Kelly
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.
April 24, 2019 edited

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

Deleted user January 14, 2020

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

Katy Kelly
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.
January 14, 2020

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

Deleted user January 14, 2020

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

Katy Kelly
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.
January 14, 2020

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

Deleted user January 14, 2020

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

Katy Kelly
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.
January 14, 2020

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
AUG Leaders

Upcoming Apps & Integrations Events