Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

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 Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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,555,286
Community Members
 
Community Events
184
Community Groups

Structure Formula Column Parsing Text

This was driving me a bit nuts, so I thought I'd share in case it might help others as an example.

We are using Jira with Structure/Structure.Gantt.

There is a custom controlled field that represents our internal company projects that follows this pattern:

<4-8 numbers>:<string>

Examples:

  • 1028:My Project
  • 2382-2828:Your Project

Use Case:

I simply wanted to display the project name/string without the numbers as a column (or grouping) in my structure. 

Solution:

REPLACE_AT(project,0,SEARCH(":",project,0),"")

Using the docs from ALM's site, I landed on the combination of REPLACE_AT and SEARCH.

REPLACE_AT allows me to remove the characters from the delimiter (:), but since the delimiter position was variable, I was able to use SEARCH to identify it's location.

I really wanted to define the SEARCH portion as a separate variable utilizing WITH, but I couldn't quite get that working.

 

If there is a more efficient way or suggestions on WITH, please share!

 

1 comment

Stepan Kholodov [ALM Works]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 13, 2020

Hi Andy,

You can indeed use with statement here:

with index=SEARCH(":", project,0):
REPLACE_AT(project,0,index,"")

An alternative would be to use

REPLACE(project, "/[0-9:]/", "")

Best regards,
Stepan Kholodov
ALM Works

Like # people like this

I hate to resurrect an old post, I have an issue close to this as well. Though I am trying to search for numbers for a build in the summary. I have a new post that isn't getting much tracking. But this thread got me the closest to getting it.

Post

 

Really appreciate if anyone has suggestions or solutions.

Comment

Log in or Sign up to comment