Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field values stored for each status

Emile Wegner May 26, 2018
Is it possible create one custom field and then store different values values in the custom field for different statuses in a workflow?

1 answer

0 votes
Grigory Salnikov
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.
May 26, 2018

Hi!

I've solved the similar task with the help of the following add-on:

Jira Misc Custom Fileds

It's documented well and you can find examples of its usage.

Hope this helps

Emile Wegner May 26, 2018

Do you mind sending the link to the example, have tried to find it on innovalog's website.

Grigory Salnikov
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.
May 26, 2018

I think it would be something like this:

<!-- @@Formula:
if (issue.get("Status") == "Status 1")
return "value 1"
... -->

Or maybe you should address status with the field id. 

I'm sorry, don't have a laptop and the mobile internet here is too slow to surf.

Grigory Salnikov
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.
May 26, 2018

Have a look at the add-on's documentation. There are examples there.

Emile Wegner May 26, 2018

Does the same custom field have the ability to store different values for different statuses of a single issue?

 

For example, custom field "SLA Breached" of issue PPP-1234 could have following values:

"SLA Breached" in "Open" Status  = "Yes"

"SLA Breached" in "In Progress" Status = "No"

Grigory Salnikov
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.
May 26, 2018

Yes, that what calculated fields do. Depending on another field it returns value. You can use any logic you like but you might spend some time to get youself familiar with the language (as I did).

All my wannabes worked :)

Emile Wegner May 26, 2018

Thanks!

Suggest an answer

Log in or Sign up to answer