How to get the value of custom field in Script Runner 2.1.16

Hello everyone.

Actually, I dont know this plugin is changed or not.

Because, I upgraded to jira 6.1.7 and then I upgraded Script Runner 2.1.16.

And then, some validators is not working. For example ;

issue.issueTypeObject.name == "XXX" is working.

But, cfValues['İletişim Tel (Bireysel)'] == null is not working.

This condition is always returning to true.

Can you help us to this case ?

Thanks in advance.

4 answers

1 accepted

This widget could not be displayed.

Hello Jamie,

issue.getCustomFieldValue( com.atlassian.jira.ComponentManager.getInstance().customFieldManager.getCustomFieldObjectByName("SomeCustomField")) == 'Some Value'
 
Some codes have changed .It is working anymore. I found your page.
https://jamieechlin.atlassian.net/browse/GRV-404?jql=text%20~%20%22cfvalues%22

Thank you Jeff Turner
These changes have forced us a little.

Do you have other changes in this plugin ?


> Do you have other changes in this plugin ?

From what version?
Can you explain your context a bit better - the issue you point to is quite a niche case.
This widget could not be displayed.

What did you upgrade from? Is İletişim Tel (Bireysel) a translation of the name? There are some issues with custom field names that have multiple translations.

This widget could not be displayed.
For version 2.1.16

But from what version? And are you asking me to list all changes from version X to version 2.1.6?

This widget could not be displayed.

Ok, sorry, I could not fully explain. It was not clear.

I upgraded from 1.7.14 to 2.1.6.

Thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

534 views 23 15
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you