It's all about the answers!

Ask a question

RTC Script for defect

Abhishek Kumar (1319) | asked Sep 09 '19, 3:04 p.m.
retagged Sep 13 '19, 4:43 p.m. by Ken Tessier (84117)

 I want to have the default text appearing on each new defect created.

Can anyone give me the solution that how can we create the script for this?

Ralph Schoon commented Sep 10 '19, 2:37 a.m. | edited Sep 10 '19, 2:38 a.m.

Purpose of text? Text needs to be changeable? Use Case? Why would you require a script?

Abhishek Kumar commented Sep 10 '19, 2:42 a.m.

I want that whenever I create a defect for a particular project , I get the default text appearing in the description field.

The text needs to be changeable.
I need the script so that I can create this default text in the description field of the defect

3 answers

permanent link
Karen Steele (1.2k2137146) | answered Sep 16 '19, 3:34 p.m.
Use the attribute customizations to set up a "default" - choose the multi line text and input what you want to be displayed.

On the field in question at the work item types - update the field to select the new default value.

permanent link
Ken Tessier (84117) | answered Sep 13 '19, 4:43 p.m.

You can also do this through the UI. For details, see Configuring default values.


permanent link
Ralph Schoon (63.3k33646) | answered Sep 10 '19, 6:01 a.m.
edited Sep 10 '19, 6:01 a.m.

 Consider the last two labs at least.

Note, default values work for all work item types that have the attribute.
Note, calculated values can check the work item types, but can overwrite user input if not used carefully.

I am pretty sure examples have been discussed here.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.