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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Variable definition

Probably a stupid question, but here goes.

I'm replacing curly brackets in links with their ASCII code (Jira does not recognize URLs with curly brackets as valid).

The following works fine:

def formField = getFieldByName("Link to TDD")
String fieldValue
fieldValue = formField.getValue()

Does anyone know why I get a "Cannot find matching symbol error" for the .replaceAll method when I use the following:

def formField = getFieldByName("Link to TDD")
def fieldValue = formField.getValue()

In other words, why do I have to declare the type of the fieldValue variable and not the formField variable?




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 What is a Trello board?

Hi, Atlassian Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Tre...

11 views 0 3
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