I'm looking to fetch the value for a custom field variable, but my script keeps failing - I'm using the expression tester extension :-(
This is what I have:
issue.getAsString("customfield_10088")
In addition, I'm using this custom field across a project, not just a single issue. Would that change the above synthax?
Welcome to the community.
What is the error you are getting and which scripting language are you using?
Regards
Hi Fabian,
thank you for the Welcome!
I suppose this is javascript, I'm using this as a reference for my syntax:
https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference/
I wouldn't know one from the other to be honest (I'm not a developer).
I'm just trying to get Jira to fetch a custom field input value (for an email address) so I can use it within automation in order to send an email to that specific address.
Does that make sense?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using jira automation you need to use smart values. Here is the reference guide: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That works, thank you! I do have the challenge to reference this field project-wide, not issue-specific. I can't seem to f figure out how that would work - is that even possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Customfield values apply to issues individually and are not project related. What is the value/field that you are looking for?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabian,
I figured it out - there is no project declaration needed.
The below works within any issue automatically:
{{issue.customfield_10088}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.