cancel
Showing results for
Did you mean:
See all
See all
##### Top groups
Explore all groups

## Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user

Level 1: Seed

25 / 150 points

Next: Root

## Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

What goes around comes around! Share the love by gifting kudos to your peers.

## Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

## 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.

4,558,887
Community Members

Community Events
184
Community Groups

# Help with using formula in structure to do basic addition and multiplication

Hi community I need some help with a basic formula for a structure I created.

I need the formula to pull information from a ticket(s) in the structure, like this (These fields are being extracted from certain fields in the tickets):

Field 1 (K) = 1

Field 2 (P) = 4

Field 3 (O) = 3

The formula would add P+K together (well call this sum A), and then do the following calculation: K x A x O = ____

Thank you!

1 vote
Nicholas Ellis _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 06, 2022

Hi Ryan,

This is actually rather simple with formula columns in Structure.  This code should do what you describe.

`WITH A = P + K :K * A * O`

The formula will ask you to define what K,P, and O are, but you can easily point them to issue fields.  The reason we don't need to define A is because it is set by the WITH statement in the first line.  The second line simply returns the result of the multiplication, this is what will be displayed in the column.

Cheers,
Nick [ALM Works]