You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I need to create a file that will populate a value based on a yes or no selection
Example:
DROP DOWN FIELD: Improves Security? [yes, no]
NUMBER FIELD: If Improves Security = Yes, then value = 10, else = 0
I have tried manipulating this formula from docs I have been reading with no success
<script type="text/javascript">
priority = document.getElementById('Improves Security');
if (Improves Security) {
target = document.getElementById('customfield_10728');
// Hide the target field if priority isn't critical
if (improves security.value != Yes) target.style.display='none';
priority.onchange=function() {
if (this.value == Yes) {
target.style.display = '';
target.value="10";
} else {
target.style.display='none';
}
}
}
</script>
Is there another simple script I can use to achieve this?
Hi @Kim Lupe-Smith,
The script that you have posted here is a Javascript which on Jira Server, we can inject it on the Jira Announcement Banner. I don't think this applies to Jira Cloud. That being said, can I know how we are injecting the JS script into Jira Cloud?
On Jira Cloud, you should have the Jira Automation which can help you with this; Create and edit rules.
I hope that this helps.
Thanks,
Moga
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.