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,294,116
Community Members
 
Community Events
165
Community Groups

Structure Formula gets "The formula could not be parsed..."

Hello,

I'm using JIRA server 8.5 and exploring Structure Formula tools to enhance sprint management. The first project successfully added enhanced issue status for sub-tasks based on very nested JQL, conditional expressions and Wiki Markup (very nice).

The next project is to start digging further into what is happening in the issue. For example, to show which blockers are involved, and to elaborate that to distinguish between closed and still open blockers. So, I have copied as a starting point the example for the Structure Manual  (v7_3.pdf, exported 2021-11-08, page 233):

WITH _format(issue) = """[${issue.key}|${issue.url}]""" :
issuelinks
.FILTER($.type = 'Blocks' AND $.destination = this)
.MAP(_format($.source))

 

Copying this into a new formula yields the error "Cannot parse expression, expected characters =...".

A similar outcome befalls this copy/paste from the Structure manual:

subtasks.MAP("""[${$.key}|${$.url}]""")

which gets the error "Cannot parse expression, expected: characters ,:)"

I have explored other cookbook examples but with similar results.

What do I need to do differently so that this will work as expected?

Thanks

 

 

1 answer

1 accepted

1 vote
Answer accepted

Hello @Paul Doman ,

David from ALM Works here.  Welcome to the Community!!

What version of Structure are you currently on?  You can find this by clicking on the info button in the bottom right corner of Structure.

The Array (.MAP) and Text Snippet (""" """) functionality in the example formulas above was introduced in Structure 7.0, along with a number of other Expr (formula) related enhancements.  If you are using an earlier version, this example formula will not work without upgrading.

Please let me know if this helps. 

If you are on Structure 7.0 or higher, please reach out to our support team via email support@almworks.com or through our customer portal support.almworks.com.

Best Regards,
David

Thank you David,

INFO reveals that we are using Structure 6.6.0, so an upgrade would resolve my issue.

In the meantime I will continue to explore.

Kind regards

Paul

Like # people like this

You are most welcome!

Like Dave Rosenlund _Tempo_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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