Jira: Custom Field with multiple values and autocomplete - jira

I would like to have a custom field in Jira that allows you to
input multiple values
allows you to enter arbitrary text values
has a predefined list of "good" values which you can use for some kind of autocomplete.
The "components" field comes close to what I want.

https://confluence.atlassian.com/jirakb/how-to-enable-autocomplete-renderer-for-multi-select-custom-field-in-jira-754978239.html is another approach, turning a select field into an autocomplete field

Related

Tableau text table zero records

I am using the text table option to visualize a KPI on Tableau Dashboard (one figure visualization).
I have a filter on , and occasionally the filter will filter out all underlying record.
Is there an option to have the text tablev visualise an alternative text or "none" instead of just becoming just blank?
Yes, if the field you're using is a dimension, you can simply right-click it on the value or on the fields window (to the left) and select "Edit aliases...", changing the 'null' alias to whatever you want.
If the field is a measure (numeric value), you will have to create a calculated field with a structure like:
IF [Field] = NULL
THEN "Field is empty"
ELSE STR([Field])
END
Once you're filtering out data, no data can be visualized and that's why you get the blank spot instead of your table/chart.
One way to bypass this problem could be building a dashboard with a tiled text object with "No data" and then you can put above it your worksheet in floating mode.
Try to see something really similar here.

Active Choices: Single Map backing two single-select dropdowns

I have a set of data that is returned as a single JSON blob that deserializes into a map. The keys of the map should back one dropdown, and the values of each key are an array of strings that, when that key is chosen in the first dropdown, populate the second dropdown. Changing the first dropdown should repopulate the second with the new set of values corresponding to the array that is the value of the new key.
['foo': ['bar','baz'], 'zoo': ['rab','zab']]
The above data should have one dropdown with 'foo' and 'zoo' as choices. When 'foo' is chosen, the other dropdown should have 'bar' and 'baz'. If 'zoo' is chosen, the other dropdown should change to 'rab' and 'zab'.
I don't want to make the API call more than once as it's not a cheap call, but I am having trouble figuring out if it's possible to back two controls with a single map... I know that I can use reactive controls to make one change based on the value in another dynamically, but not how to have both looking at one data structure.
Either I'm missing something silly, or it's not possible. I'm not sure which it is.

Filter Issues by JQL

I have list of issues which contain certain set of fields (6 custom fields) these fields can be have values only "A"or "B". the my question is how can I filter those issues if one these field have a value "A". let say for a example these custom fields are
cus_field1,cus_field2,cus_field3,cus_field4,cus_field5,cus_field6 and if one these field have certain value how can I filter those issues?
I am not sure, do you mean how to use an 'or' clause? As I understand, a simple "cus_field1=A or cus_field2=A or cus_field3=A or cus_field4=A or cus_field5=A or cus_field6=A" should solve your problem, isn't it?
According to the reference, I couldn't find any possibility to combine different fields, so you have no other choice but specify the A filter value for each custom field...
https://confluence.atlassian.com/jira/searching-for-issues-185729570.html

Delphi grid with a different data type in each row, displayed dynamically

I am trying to create a Delphi grid to allow display and edit in a db grid of data that might have a different data type on each row. I would like to display a specific control for each data type, e.g. when the data type is DateTime, I want to display my custom edit control that allows typing a date in or popping up a calendar.
The data looks something like this:
Name DataType DateValue StringValue BooleanValue
---------------------------------------------------------
A Date 1/1/2007
B String asdf
C Boolean True
...and in the db, this table has a column for each possible type of value. So, there is a BooleanValue column, DateValue, etc.
What I would like to do is display a single 'Value' column in the grid that displays the appropriate edit control depending on what the 'DataType' is for that row. So, the grid should look like :
Name DataType Value
---------------------------
A Date 1/1/2007
B String asdf
C Boolean True
It seems I will need to display a different edit control (to allow the user to edit the Value column) for each row dynamically based on the value of the DataType column. I know there are more advanced grids out there that handle this sort of problem, but the powers that be will not allow anything but what is available out-of-the-box with Delphi.
Any ideas on how to make something like this work?
Personally, I would not go for editing directly inside the TDBGrid in this case, since your Table is not DB normalized (I don't use it in any case actually). I would have used a Calculated field to display the desired value in the grid, And dynamically created the TDBxxxEdits on the form for each field type (How about your own TDBTreeEdit for example, a TDBRichEdit, or a DB Image pickup editor, etc...?).
In case you do want to use your own controls on the TDBGrid, and replace the default TInplaceEdit editor, you can refer the following article: Adding components to a DBGrid, and a related article: Displaying and editing MEMO fiels in Delphi's TDBGrid
Displaying all of the data in the same column is quite easy. You can simply add a calculated string field, and change the value according to what you are storing in that row.
The editing is quite a bit more complicated. If you want to have an in-place editor, you are in for a world of hurt... I've done it, it's a pain, and takes a lot of time. If you want to display a dialog to edit the value, that's much easier. You can add a column objects to the grid and you can setup the column you have attached to the calc field to display a button. When the button is clicked you simply display the editing dialog needed for that row, and commit the edits when the dialog is closed.
There are other ways to get this done, but I would say the above would be the shortest way. Other ways may include custom draw events to display your data in one column, intercept clicks to create your own editor, etc, etc, etc...
after add calculated fields .
Sample:
procedure OnCalculate(DataSet:TDataSet);
begin
case IndexText(DataSet['ValueType'],['Date','String','Boolean']) of
0:DataSet['DateValue']:=StrToDateTime(DataSet['Value']); // also converting
1:DataSet['StringValue']:=DataSet['Value'];
2:DataSet['BooleanValue']:= MatchText(DataSet['Value'],['1','True','T','Y','Yes']);
{etc datatypes}
end;
end;

Why would a SharePoint lookup menu require a double-click to select an item?

I have a SharePoint feature which programatically creates 3 lookups in a custom list, one from each of 3 different lists via extremely similar CAML markup.
The only differences in the CAML are the List, ID, Name, DisplayName and StaticName properties yet one of these lookups looks slightly different (has a slightly more "modern" drop-down arrow) than the other two and this same menu requires I double-click in order to select an item instead of single-clicking as I do with the other lookups.
Might anyone have seen this before and have an idea of what I might look into to make this lookup operate as a single-click menu?
The style of dropdown displayed is usually related to the number of items, although it also renders as a standard select element when viewed in firefox.
For any other field type it would make sense to create a custom field control, but due to code that expects things to be named "Lookup", lookup fields are next to impossible to extend.
The best way to customize a specific field is probably with javascript/jquery. When you click on the dropdown arrow, ShowDropdown (in core.js) is called. This creates a select element with options set from the pipe delimited list in the choices attribute of the textbox.
Add some code to the page so that on load EnsureSelect and FilterChoice or similar are called to create the select element. Set properties on the textbox and select elements so that the textbox as hidden and the select element is a visible dropdown. Have SetCtrlFromOpt called on change rather than on blur/double click so that the control that the server will read and save is properly updated.
The same approach could be used to keep the combo box but add a click event to set the value rather than requiring a double click.
How many items has the source list of every lookup field?
Lookup fields shows a "Combo" when the source list has 10 items (I'm not sure if 10 item is the exact limit). When the source list has more than 10 items the lookup field shows a "ListArea" control that works as you said.
I have exactly the same problem. One difference I have noticed is that the one listbox that requires a double-click is a lookup field, whereas the one that doesn't is a choice field with pre-populated choices. Don't know if that helps.

Resources