Best way to determine field syntax

I've been fighting through determining what the appropriate syntax is for what should be a very simple automation. Essentially, I just want to say, if request type = new contractor, then assign person x as a watcher. I've tried a million variations on this to get the automation to work successfully, but the log shows the following message: "No subsequent actions were performed since comparator condition did not pass. Issues that did not match...".

What is the best way to figure out what the correct syntax is for a field, especially if dealing with a custom field? The info provided here (https://codebarrel.atlassian.net/wiki/display/AUTO4J/Smart+Fields) only goes so far...

1 answer

0 vote
Andreas Knecht Community Champion May 16, 2017

Hi Tiffany,

Sorry that this isn't as easy yet as it should be.  We have plans to make this easier with an auto-complete (or something similar) in future: https://codebarrel.atlassian.net/browse/AUT-104

In the meantime, it's often easier to use a JQL condition.  So in your example you could simply use this JQL (which you can test in the issue navigator):

type = "new contractor"

The smart value for this would be:

{{issue.fields.issuetype.name}}

The other thing you can do, is to use a 'Log action' in Automation for JIRA and paste your smart-value there.  Then when the rule runs, you can see the rendered value in the audit log.

Hope this helps!

Cheers,
  Andreas

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
Read article

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