I am trying to get the Team name smart value from the issue. Looking at the api the teams is a custom field that is only returning a numeric id and no name or description. What could be the reason for that?
My Jira admin said that teams is a system field and therefore is different than a custom field. If that is true then is there a way to get the name of the team as a smart value?
I was able to get the Team value using the following. Replace 10001 with your Team custom field id.
{{issue.fields.customfield_10001.name}}
The below also works, though I'm not sure why Atlassian uses both a name and a title. They appear to be identical looking at the API data.
{{issue.fields.customfield_10001.title}}
since this is no longer a custom field and is now an official atlassian field, this is the smart value for it {{issue.team.Name}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've managed to create an automation rule that grabs the Team Id from the parent and updates it to the issue in question.
I did this by creating a variable called {{Teams}} and used the smart value {{issue.customfield_10600.id}} where [customfield_10600] is the Teams field.
Our customfield_10600 is now an object with "id", "name", "avatarUrl", "isVisible", "title" and "isShared" as variables.
Time has progressed since this question was originally posted but in cases this hadn't been resolved, I thought I'd share.
Cheers
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.
that will not work because as you can see from the json the custom field does not have an id variable.
And also I am trying to get the name of the team instead of the id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure but have you tried .id or .value behind the custom field? Like:
{{issue.customfield_12313240.value}}
You could also take a look at this documentation -> https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/
HTH,
KGM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Kristján Geir Mathiesen ,
Yes I have tried that and since that api does not have the custom field as an object therefore the id and value is just null.
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.
I am under the impression that Teams is still in EAP and, as such, isn't supported by Automation yet.
Cheers,
Simeon.
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.