custom field, which connects own value with constant string

Wolfgang Reis September 19, 2011

hi,

i needs a custom field, which after input sets its own value to the inserted value connected with

the constant string "TestlinkID = ".

Example :

user input = "13" ==> value of custom field = "TestlinkID = 13".

Any Ideas?

wolfgang reis

2 answers

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2011

You could write a trivial plugin that subclasses the short text or number field, change the basic text display velocity file so its value is shown as "TestLinkID $value". That way people could also sensibly edit it.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2011

You'll need to write code for that. Specifically, a listener that will catch the events where it can be changed and re-writes the value after a user updates it. Or, you could have two fields - one for entry and the other derived or automatically populated (again, by listener)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events