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

Robert W_ Olsen November 23, 2020

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 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