Hi,
I'm trying to define a smart value variable. I want to concatenate some text with the value of an issue field.
In the smart value action to define a vaiable I enter the variable name and in the "Smart Value" field I'm trying to enter the smart value reference to my custom field ("DS Safe") but I can't enter a space character in the field. Since I can't type a space character in the box, I can't reference my field. Yes, I know I can use customfield_xxxx to reference the field but I'd rather use the name.
The even stranger thing is I can "paste" a space in that box. So if I create the value outside this dialog "{{issue.DS Safe}}" I can paste it and it works.
This seems like a bug. Anyone else seeing this?
Atlassian confirmed this is a bug
https://jira.atlassian.com/browse/AUTO-344
Workaround is to copy/paste or enter the text without spaces and then go back and add the spaces. Turns out you can enter spaces between characters just not at the start or end of a line.
Hello Tom,
I think automations for Jira requires the customfield id and not the name, it's also a failsafe if you or some other Jira admins in your organization decides to create a different custom field with the same name (it happened to me).
I've only used the way Joel mentioned with {{issue."name x"}} and the customfield.id when it comes to adding spaces.
You could always try the ASCII code for space and hope that the backend API is converting it to a space. I've worked with some of the Jira APIs and they're usually sensitive of the content-type encoding, unless they've used a dedicated encoding in the backend API calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I get the risk of using a field name instead of the customfield id and it's bitten me before as well. I was going for readability in this case as the fields I'm using are not likely to change or be duplicated.
This actually goes beyond field names however. If I wanted a smart variable to have a value of "Hello World" I can't do it because I can't type a space in the box.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope. I physically can't type a space character in either box in that dialog - whether it's quoted or not.
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.