Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,946
Community Members
 
Community Events
165
Community Groups

Advanced compare condition does not match "projectTypeKey" property on project picker custom field

Edited

Setup:

We have a custom field called "Project picker" of the type "Project Picker (single project)".

The https://[Company].atlassian.net/rest/api/3/issue/[Issue] view shows the custom field as having the ID, Key, Name, and Type of project

customfield_10413: {
self: "https://[Company].atlassian.net/rest/api/3/project/10039",
id: "10039",
key: "AAAS",
name: "Atlassian As a Service",
projectTypeKey: "software",
simplified: false,

I want to use this for automated project access and do an "Advanced compare condition" of {{issue.customfield_10413.projectTypeKey}} equals software (or service-desk).
image.png

Behaviour

When the project picker custom field has a software project selected and the automation runs the issue does not match the condition.
image.png

 

1 answer

1 accepted

4 votes
Answer accepted

@Rune Rasmussen -

Please give a try of this syntax 

{{customfield_10413.projectTypeKey}}

I also recommend that you can utilize "Log action" when debugging smart value for custom fields in general.  https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

@Joseph Chung Yin 

Thank you for the suggestions.
It turns out that I missed the T in sofTware...

The "Log action" is really neat. Wasn't aware of it, but it'll be a good tool to have going forward.

The syntax of {{customfield_10413.projectTypeKey}} and {{issue.customfield_10413.projectTypeKey}} gives the same value with using the Log action.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

220 views 1 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you