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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

Comment

Log in or Sign up to comment
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