Is there a way I can search Jira for code snippets? I'm collecting snippets that can serve as samples.
I'm using this JQL query - is there a way to target code? Or search for braces/brackets?
project IN ('Inbox') AND (text ~ "sample" AND text ~ "example" OR text ~ "code" OR text ~ "snippet") AND created >= startOfYear(-1) and created <= endOfYear()
Related
I have a google form linked document with 2 sheets (1 with a linked form, 1 without). If I try using some formulas (SUMIF or QUERY) in the sheet that is not linked I get a "Formula parse error", additionally the syntax highlighting bugs out when typing a SUMIF formula.
For reference, this is the exact sheet and formula I am trying:
However, If I copy and paste the exact contents of this sheet to another google sheets document, then the SUMIF just works. Does having a google form linked sheet in the same document affect the other sheets?
you sheet has non-english locale therefore you need to use semicolon ; instead of commas , in formula syntaxes
if you use ; in non-english sheets = all is ok
if you use ; in english sheets = all is ok - all ; are autocorrected into ,
if you use , in english sheets = all is ok
if you use , in non-english sheets = you got a syntax error
also keep in mind that arrays {} have its own syntax universe...
in english sheets you use , to stack stuff next to each other
in english sheets you use ; to stack stuff under each other
in non-english sheets you use \ to stack stuff next to each other
in non-english sheets you use ; to stack stuff under each other
anyway, if you are not sure what to use either check the settings or you can take a hint from the formula tooltip helper box:
I am pulling data with a Plugin called Supermetrics from Adobe Analytics to Google Sheet.
The Date column is pulled as String and I want to create automatically another column that is reading and converting this column to a Date Format
Input
Year & month First touch channel Visits
2018|12 Natural Search 12345
2019|01 Natural Search 56789
2019|02 Natural Search 23456
2019|03 Natural Search 78912
2019|04 Natural Search 34567
Expected Output
Year & month First touch channel Visits Year & month_dt
2018|12 Natural Search 12345 2018|12
2019|01 Natural Search 56789 2019|01
2019|02 Natural Search 23456 2019|02
2019|03 Natural Search 78912 2019|03
2019|04 Natural Search 34567 2019|04
I don't need to do manually by clicking on the menu -> Format->Date
I need a way to do automatically and possibly without conflicts with the plugin, because the data are going to be refreshed daily.
You can use this array formula in the table header
={"Year & month_dt";ArrayFormula(if(A2:A<>"", DATE(LEFT(A2:A,4),RIGHT(A2:A,2),1),))}
in order to convert the received dates to your desired format - apply the YYYY|MM date format once for the whole column
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*"
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.
I did some searching and in openoffice and excel it looks like you can simply add an * at the beginning or end of a character to delete everything before and after it, but in Google spreadsheet this isn't working. Does it support this feature? So if I have:
keyword USD 0078945jg .12 N N 5748 8
And I want to remove USD and everything after it what do I use? I have tried:
USD* and (USD*) with regular expressions checked
But it doesn't work. Any ideas?
The * quantifier just needs to be applied to a dot (.) which will match any character.
To clarify: the * wildcard used in certain spreadsheet functions (eg COUNTIF) has a different usage to the * quantifier used in regular expressions.
In addition to options that would be available in Excel (LEFT + FIND) pointed out by pnuts, you can use a variety of regex tools available in Google Sheets for text searching / manipulation
For example, RegexReplace:
=REGEXREPLACE(A1,"(.*)USD.*","$1")
(.*) <- capture group () with zero or more * of any character .
USD.* <- exact match on USD followed by zero or more * of any character .
$1 <- replace with match in first capture group
Please try:
and also have a look at.
For spaces within keyword I suggest a helper column with a formula such as:
=left(A1,find("USD",A1)-1)
copied down to suit. The formula could be converted to values and the raw data (assumed to be in ColumnA) then deleted, if desired.
To add to the answers here, you can get into trouble when there are special characters in the text (I have been struggling with this for years).
You can put a frontslash \ in front of special characters such as ?, + or . to escape them. But I still got stuck when there were further special characters in the text. I finally figured it out after reading find and replace in google sheets with regex.
Example: I want to remove the number, period and space from the beginning of a question like this: 1. What is your name?
Go to Edit → Find and replace
In the Find field, enter the following: .+\. (note: this includes a space at the end).
Note: In the Find and replace dialogue box, be sure to check "Search using regular expressions" and "match case". Leave the Replace field blank.
The result will be this text only: What is your name?