Put a prefix to a custom field value - how to?

Rumceisz September 15, 2015

Hi Everyone,

we have a text type custom field which has different values for each issues. We need to put a prefix for this values for each issues. So the bulk change doesn't work here because of the different values.

Is there a solution with we could execute this?

Thanks,
Rumi

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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 15, 2015

JIRA Command Line Interface (CLI) can help with this. You can use setFieldValue with the appendText parameter. Combine that with the runFromIssueList action with a JQL query to determine what issues need the field to be updated. Reference: How to use runFromIssueList

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2015

You'll need to script an update to each and every text field.

Personally, I wouldn't bother.  A text field is supposed to be for free-text, and putting prefices in text feels like a bodge.  If you really need to classify stuff like that, you should almost certainly be using a new field for the prefix.

Could you explain the reason you think a prefix is the right thing to do?  Or the problem you're trying to solve with it at least?

Suggest an answer

Log in or Sign up to answer