Mandatory field indicator in Jenkins TextBox or checkbox - jenkins

Is there any way where i can define a mandatory * ( asterix ) for a field in jenkins some thing like red colored star. I am using a text after the field saying it mandatory. can i use some indication like star with color to indicate mandatory.

Navigate to Manage Jenkins -> Configure Global Security, and change the Markup Formatter selection from Plain Text to Safe HTML then click Apply.
Go back to configuring the job, and in the Description box, you can CSS in a span tag. For example: <span style="color: red;">This is a mandatory field.</span>

Related

JIRA Custom field not rendering Rich Text

I have created two custom fields on a JIRA story that I need rich text entry. The problem is that one is rendering correctly and the other isn't as can be see by the following images.
Both as can be seen are setup 'Text Field Multi-line' - exhausted all other lines of enquiry
The field has probably not the correct field renderer configured.
Settings --> Issues --> Field Configurations --> Your used field configuration
Now look for your field and click the "Renderers" link to select the "Wiki Style Renderer".
You need to create a Text Field, and convert it to WIKI style text field. This way you will be able to post URL.
Here is 5 minute video which I have created on how to do this.
https://youtu.be/QCNHPy88iKA
I hope it helps.

Including Empty Text in TFS HTML Field (TFS 2013)

I am trying to add default empty text to an HTML field in TFS 2013. I am doing this by updating the "EmptyText" attribute for the field in the Layout options (using Process Editor).
However, regardless of what I enter here, the intended text is never displayed. It is always empty. I have the same issue with both HTML & Plain Text fields.
Is this a fundamental limitation of TFS? Or am I specifying this incorrectly?
I am not using a DEFAULT rule because I want the user to notice that the field is empty and be required to enter a value.
I can get it work correctly. Two changes made:
Edit the "Empty Text" attribute just as you mentioned above (in my case I create one custom HTML field called Custom.DetailHTML):
Add Required rule to this field to define that this field must be specified with a value:
<FieldDefinition name="DetailHtml" refname="Custom.DetailHtml" type="HTML">
<REQUIRED />
</FieldDefinition>
If you still can't get it work, please show your WIT file.

How to add a toolTip to a valuePicker

I have an Ext Lib valuePicker on an XPage and then have added an Ext Lib toolTip to the Xpage and specified the id of the valuePicker in the for property of the toolTip (it shows up in the list of controls to aim the toolTip at, but when I hover over the valuePicker nothing happens. I have several toolTips on the page aiming at radio buttons and edit boxes and they all work correctly so my process is correct. I aim the toolTip that I want for the valuePicker to an edit control and I get the correct tip displaying.
The valuePicker "loses" it id during rendering (look at rendered page's source code) so it is not possible to address valuePicker's id in tooltip.
A workaround is to put a <span> with an id around the valuePicker and to address this id in tooltip.
<span
id="valuePickerTooltip">
<xe:valuePicker
id="valuePicker"
...>
<xe:this.dataProvider>
...
</xe:this.dataProvider>
</xe:valuePicker>
</span>
<xe:tooltip
id="tooltip1"
for="valuePickerTooltip"
label="this is the tooltip">
</xe:tooltip>
perhaps you can compute the "for" property for the xe:tooltip to use getClientId("valuePickerTooltip").
Without having this tested, I'm pretty sure the "valuePickerTooltip" id will be converted to a client ID at runtime, that means it gets a prefix. With getClientId() you can get the runtime ID for a control.

Configure Description field in Rally to be plain text

I'm using the RallyConnectorforJira-Ruby-2.7.4 to sync issues between Rally and JIRA, but the description field in Rally is using HTML/Rich Text and inserting tags into the description field in JIRA when it syncs. E.g.
<div>
</div>
<div>Updating the description to see if sync is working the other way.</div>
<div>
</div>
<div>Another update, this time changing state to Open in Rally, which should move the issue to In Progress in JIRA. Also, will the JIRALink field now get picked up?</div>
<div>
</div>
<div>Will it let me move this to re-opened?</div>
<div></div>
<div>Changed the workflow in JIRA to see if this breaks the integration - will it update, but error, or not update at all?</div>
<div>
</div>
<div>Fixing the workflow - this should move to In Progress</div>
JIRA is using the Default Text Renderer and according to the instructions at http://www.rallydev.com/help/jira-installation-user-guide "you can elect to have the Description field in either system consist of just plain text, without any markup.", but I can't find any instructions or settings in Rally that let me define the Description field as plain text in Rally.
If I log in to Rally and select Setup -> Workspaces -> Projects & Workspaces -> -> Work Products and Fields -> Description -> Edit I see the following:
Name: description
Display Name: Description
Type: Text
Hidden: unchecked
Occurrences: 20
Required: unchecked
but no option to change the Type or specify plain text only.
Is it possible to set the Description field in Rally to be plain text only so that there is no HTML markup inserted into the field at source? Or is there something in jira_config.xml that I should be setting to tell it to remove HTML markup from the field coming across from Rally?
Thanks,
Andrew.

Struts2 : Customize s:textfield tag

I want to customize struts2 tag.
In my web app some of the fields are mandatory.So I want to customize struts2 text filed in such a way that It will display text box and a "*" symbol(mandatory sign) combined.
So I dont need to hard code "*" after each mandatory text field.
One thing is that I have not used strtus2 built in theme. So I dont want to enable the theme to implement this functionality.
Then .. How can I implement such a customized text field ?
Thanx,
Gunjan Shah.
You should be able to use mandatoru="true" in s: tags. This will by default place the * sign before that field.
Hope this helps.
There is an attribute named "required". You can set it to true. It will set * (red colored) symbol after the label.
Its built in facility provieded by struts.

Resources