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

Is there any possibility to get Customer Portal URL in ScriptRunner Behaviours?

Deleted user Oct 30, 2018

Hi Community

I need to get URL with the parameters from Customer Portal, for example "http://localhost:8080/servicedesk/customer/portal/1/create/11?summary=issuetest&description=getmyurl", and use it in ScriptRunner Behaviour to fill in Request's fields in Customer Portal. Is there any possibility to get that URL?

Thansk for any help!

Piotr

2 answers

Hi @[deleted] and welcome to our Community!

Let me try something to help you.

@Nic Brough _Adaptavist_ is summoned here!

Now we wait ...

Hi Nic,

I've been trying also to do the above and on the advice of another community member was guided to look at request.requestURL.toString().  I'm doing ServiceDesk request form behaviors and that gives me the path to the scriptrunner behavior validator like for example:

    https://mySite.site.com/rest/scriptrunner/behaviours/latest/jsd/jsd/validatorsByPid.json

Do you know how to get the URL of the servicedesk issue entry form itself?  The reason by the way is that after a ServiceDesk search entry box a user clicks the request type and I want the search sentence to pass into the summary field.  The request form has it in the URL so want to grab it out and enter via a behavior...example URL showing the query params:

https://mySite.site.com/servicedesk/customer/portal/1/create/69?summary=my+issue+is

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Desk

The Complete Guide to Atlassian for ITSM

Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...

2,151 views 15 22
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