Add a text in field "description", if type of created task is "bug"

zakirov_em August 22, 2016

Hello.

How i can add a text in field "description", if type of created task is "bug".

We need it only for 1 type os tasks.

3 answers

0 votes
Jonas Andersson
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.
August 22, 2016

This can also be accomplished with java scripts embedded in the description fields of a custom field. (mentioned here https://confluence.atlassian.com/jira/fields-allowing-custom-html-or-javascript-224401453.html )

Be aware that it might break while upgrading to a new JIRA version, so these customizations will always have to be rigorously documented and maintained when servers are overhauled for one or more reasons.

0 votes
Alexandra Topoloaga
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.
August 22, 2016

You can do this with JJUPIN, it's a very simple thing.

You have to create a small script that watches over the issue type and the description and sets the value of the second one from the first one.

A similar example, but with some other fields is here: https://confluence.kepler-rominfo.com/display/TR/Default+values+of+%28system%29+fields+on+create+screen

 

Hope this helps,

Alexandra 

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 22, 2016

Hello @zakirov_em

Default values for system fields isn't supported in JIRA, please see here - https://jira.atlassian.com/browse/JRA-4812

But this functionality can be achieved using plugins like Script Runner.

Please see here - https://confluence.atlassian.com/jira/setting-a-default-value-in-the-description-field-166003857.html 

And this discussion https://answers.atlassian.com/questions/24654632

 

Suggest an answer

Log in or Sign up to answer