JIRA JQL Contains Hyphen - jira

I'm created tickets with titles (summaries?) as follows:
ABC - My Ticket Title
ABC - Title 2
I'm trying to create a filter which shows any summary which starts with ABC -
The following don't work:
summary ~ "ABC - "
summary ~ "ABC \- "
summary ~ "ABC \\- "
Is this possible?

Appreciate this was posted a while ago but, You should be able to replace summary with the word text which should work, Below is what I tend to use when I want to do a wild card search when I only know the start of a summary.
text ~ "ABC*"

Related

How to remove specific phrases in google sheets

I have transcripts of online customer service interactions in Sheets that I would like to anonymize. They are formatted like so:
09:11:37 - Jane Doe : Good morning!
09:12:00 - John Smith : Hello!
The entire sheet has many many different names and hundreds of interactions, so find and replace is still tedious. Is there a way to isolate everything between "-" and ":" and either replace or delete on each line? I found examples of similar things, but could never get the syntax quite right.
Also open to other ideas or tool suggestions!
TIA
You can use regular expression
=regexreplace(A1,"(\-.*: )","")
Just a little idea, I would give.
You can use SEARCH() to find where : and - is and you can extract the sub string from the text.
Example:
A3 has "09:11:37 - Jane Doe : Good morning!"
LEFT(A3, SEARCH(" - ", A3) - 1) would give me 09:11:37 and what basically we are doing is getting Substring from the beginning of the text.
MID(A3, SEARCH(" : ", A3) + 3 , 100000) would give be Good morning!
now finally use CONCATENATE to join these strings as
= CONCATENATE( LEFT(A3, SEARCH(" - ", A3) - 1), " ", MID(A3, SEARCH(" : ", A3) + 3 , 100000))
Now you will get the string as 09:11:37 Good morning!
Hope that works. Play around with the formula cheat sheet.
Reference: https://support.google.com/docs/table/25273?hl=en

Is there code that can force a user to enter a particular format into a cell?

I have a Google Spreadsheet.
Google Spreadsheet
When users enter a name into any cell of column A of the sheet named "Unit Standards" I want them to enter that name in a particular format. That is, with the surname first in uppercase then a comma, then the first name in title case then if they are known by a different name that name to be title case in brackets e.g.
BUSH, George
TRUMP, Donald
CLINTON, William (Bill)
CARTER, James (Jimmy)
SMITH-JONES, John
ZETA-JONES, Catherine (Kate)
Is there a way to force them to do that before they leave the cell or the sheet?
You could use a script. Still.
You can have the same results with a simple formula using Data Validation on column A.
This is the formula to put in cell A2 for the range A2:A555:
=REGEXMATCH(A2,"^[A-Z]+\b[',']\s[A-Z]{1}[a-z]+\b(\s([A-Z][a-z]+\b))?$")
Reading the regular expression:
^[A-Z]+\b[',']\s[A-Z]{1}[a-z]+\b(\s([A-Z][a-z]+\b))?$
^[A-Z]+\b: In the beginning have only 1 or more capital letters until the end of the word
[',']\s: Have a , followed by an empty space
[A-Z]{1}[a-z]+\b: Have only 1 capital letter and 1 or more small letters till the end of the word
(\s\([A-Z][a-z]+\b\))?$: All of the above could be followed ? by this string.
\s\(: An empty space and an opening parenthesis (
[A-Z][a-z]+\b: A word starting with just 1 capital followed by 1 or more small letters
\): A closing parenthesis
$: End of string

Split first name(s) from last name in Google Sheets

I wanted to separate the last name in a cell from any and all first/middle names.
EG:
"Greg Smith"
"Andy H K Anderson"
"Tony & Amanda Ferguson"
Becomes
Greg | Smith
Andy H K | Anderson
Tony & Amanda | Ferguson
Couldn't find an answer here or on any other site. but I did manage to write my own formula that I wanted to share in case others run into this same problem. And perhaps someone else could make a better version.
FIRST NAME(S):
=LEFT(A2,MINUS(LEN(A2),LEN(INDEX(SPLIT(A2," "),0,COUNTA(SPLIT(A2," "))))))
LAST NAME:
=INDEX(SPLIT(A2," "),0,COUNTA(SPLIT(A2," ")))
An alternative way (using a single array formula) would be to use regexextract
=Arrayformula(if(len(A2:A), regexextract(A2:A, "(.+)\s([^\s]+)$"),))
The first capturing group (.+) extracts
every character .+
before the last space \s (in a 'greedy' way),
the second capturing group ([^\s]+) extracts
everything after the last space [^\s]+
to the end of the string $.

show all results on VLOOKUP

On Google sheets I wish to correlate data from a column, every time its adjacent column has a certain attribute.
For example, Imagine I have a list of pupils and the language that they are studying. In column A is the name of the pupil and in column B is the language:
NAME | LANGUAGE
---------------------------------------------------
John | French
James | Spanish
Stephen | Spanish
Simon | German
Mark | French
Luke | German
Robert | French
I want to generate a new sheet showing the name of each language, with the names of the people who study it in the adjacent columns. It would look something like this:
LANGUAGE | NAMES
---------------------------------------------------
French | John | Mark | Robert
German | Simon | Luke |
Spanish | James | Stephen |
I have tried to achieve this with VLOOKUP however this only returns the first value encountered for each language, rather than all the values.
What is the best way to achieve this?
Assuming 'French' is in cell A2 of Sheet2, in B2 you could try something like
=transpose(filter(Sheet1!$A$2:$A; Sheet1!$B$2:$B=$A2))
and fill down.
(change ranges to suit).
Try QUERY which is so powerful with transpose added too:
=TRANSPOSE(QUERY(Sheet1!A2:ZZ, "SELECT A WHERE B = '"French"'"))

Whats the JIRA JQL to find issues containing strings in a path

Here's a simple example - I have two JIRA issues, first contains /path2/file, second contains path2 without /. If I use this JQL: text ~ path2, then only the second issue shows up in search results.
Is there a setting I can change, a different JQL I can use, or some other trick that will get the first issue to show up in search results?
Note I'm using a local install of the latest JIRA, 7.4.4, right now. I also explicitly reindexed JIRA and it made no difference. These JQL did not work either:
text ~ "path2*"
text ~ "path2?"
Note that if change search term to something that is only letters, it actually works - it will find an issue with that term when part of a folder/path/directory
Update sept 12:
T1 issue contains in description "path2"
T2 issue contains in description "path2/file"
T3 issue contains in description "/path2/file"
T4 issue contains in description "/long/path2/file"
T5 issue contains in description "path"
T6 issue contains in description "path/file"
T7 issue contains in description "/path/file"
T8 issue contains in description "/long/path/file"
T9 issue contains in description "/long2/path2/file"
Issues appearing on JIRA 7.5.0 server (not cloud):
T1 T2 T3 T4 T5 T6 T7 T8 T9 JQL
5 6 7 8 text ~ "path"
1 text ~ "path?"
1 2 3 5 6 7 8 text ~ "path*"
1 text ~ "path2"
text ~ "path2?"
1 2 3 text ~ "path2*"
Summary - T4, T9 never found.
T8 found, so text ~ "path*" will match /long/path/file
Conclusion: the directory delimiter / is a word break (like whitespace)
only when letters are used (T8), not when letters and numbers (T4, T9).
Can you please give us the exact textual representation of those paths?
I just tried it (in my personal Cloud instance). I made three issues where the descriptions were:
test /path2/file test
test path2/file test
test path2 test
And the following JQL text ~ "path2*" found all of them.
did you ever try to search within the field "DESCRIPTION" instead of "text"?
There is a chance this post is outdated, but maybe this leads to a different behaviour.

Resources