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

How to generate a link with scriptrunner

Hello together, 

i want the following:

- The user creates an issue

- When he fill the custom Field TicketID with the value "AB1234"

- I want that after the user switch to another field the value of field TicketID switch to

How is this possible with scriptrunner? 
Do I need a listener or a custom script field?

1 answer

0 votes
Mike Rathwell Community Leader Nov 13, 2019

Hi @lightam 

Is there any particular reason you need it to change as the issue is being created? This would be quite straightforward to do in a Create Post Function where:

  • Groovy Post Function script reads the current value in the field
  • Prepends it with "baseUrl/browse/"
  • Writes it back.

Note: I use the "baseUrl" always rather than hard coding the URL of the site; that way if it changes OR I move over to my test instance, it picks up what the system thinks it is and not what I told it when it was that.. thing.

Hope this helps

Suggest an answer

Log in or Sign up to answer

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