Hello,
I am wondering if it is possible for the Color Custom Fields, particularly the Picker, to accept and act upon setting rules / commands via HTML stored in the field description?
In particular, I would be interested in running the following or a similar command:
<!-- @@Formula: issue.get("customfield_11605")>=1 ? #00ff00 : issue.get("customfield_11605") >=0.7 ? #ffff00 : #ff0000 -->
Basically I would be looking for the ability to conditionaly set / format these fields automatically?
Would this be possible, now or in the future?
Jordan,
If you want to see change color on screen you need to use javascript in description.
Otherwise you can write post function using script runner to change value
OK, thank you for the advice........
I am trying out the syntax - can you help me out wit hthis syntax to be placed in the Description?:
<!-- @@Formula: if (issue.get(“customfield_11605”)>=1)
{
return #00ff00;
}
else if (issue.get(“customfield_11605”)>=0.7)
{
return #ffff00;
}
else
{
return #ff0000;
} -->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try this plugin: https://marketplace.atlassian.com/apps/1219385/rainbow-field?hosting=server&tab=overview
Any feature requests much apprecated!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello sir,
Yes, I think that placing the command in the Description would be fine.
I am not at all particular as to the language used - just whatever would cause the field value to be automatically set the easiest?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I am creator of this add-on. You mean to set value using javascript in description of banner?
If so my answer yes, because, it is just test field with specific renderer. Or you are asking to do it using configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.