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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Can You Save a Fix Version to a Custom Field of Type "Text Field (Single Line)"

The logic is simple:

"If Original Fix Version is null and Fix Version is not null, set Original Fix Version to Fix Version."

I can get the value of Fix Version/s using "issue.fixVersions".

I can get the value of Original Fix Version using "issue.getCustomFieldValue"

I am running this in Listener, and I get this output in the log:

WARN [runner.AbstractScriptRunner]: orgFixVersionFieldValue = null
WARN [runner.AbstractScriptRunner]: fixVersionValue = [5.1]
WARN [runner.AbstractScriptRunner]: Setting new orgFixVersionField
WARN [runner.AbstractScriptRunner]: new orgFixVersionFieldValue = [5.1]

But when I go to look at the Original Fix Version in the project, it is still null.

1 answer

0 votes
Hana Kučerová Community Leader Nov 25, 2020

Hi @Robert W_ Olsen ,

welcome to the Atlassian Community!

Would you please share the whole code with us to be able to investigate, what is wrong? Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS

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