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,556,619
Community Members
 
Community Events
184
Community Groups

I want nested JQL which will fetch sub-string present under says [ ] from the actual return JQL.

Deepak Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 18, 2023

let say I have a JQL like 

project=projectName AND issuetype in (Epic,Story) AND 'Publish in Release Notes'=Publish ORDER BY 'Release Notes Comments', summary asc

where under "Release Notes Comments" section have some value as shown in snap below.

 

I want to fetch only those string [ XYZ ] without bracket (anything under the bracket should come as final output)

image.png

1 answer

0 votes
Ian Carlos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 18, 2023

Is Release Notes a customfield? You mean that you want all your issues that Release Notes contains XYZ (I know this is an example) string?

Deepak Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 18, 2023 • edited

Hi @Ian Carlos ,

Yes, 'Release Notes' is a customfield. All I want is that some JQL which return all words which is under [ ] bracket from 'Release Notes Comments'.

 

if I use this JQL, project=projectName AND issuetype in (Epic,Story) AND 'Publish in Release Notes'=Publish ORDER BY 'Release Notes Comments', summary asc

it will return " [XYZ]123-456 : This is just for example "

 but I need only "XYZ" (i.e. whatever present under [ ] )

Ian Carlos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 18, 2023

Hi @Deepak Kumar 

I don't think you can do that

JQL is for returning a list of issues, with all their fields

For getting a substring of a field I think you'll need to use extra tools like a programming language automation or something likewise

 

I mean, you'll get the full list of issues, with their fields (and customfields) full of data (not a portion of it)

 

Sorry if maybe I'm missunderstanding you

If you get to solve it, please let us know how, I think it would be good for the community

Suggest an answer

Log in or Sign up to answer