Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Is there a way to get required field asterisks to show up on a screen when the required field is configured by the post transition validation?

What is the JQL code for searching tickets created and due within 3 days?

Grace
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 27, 2020

I'm looking to search for tickets created and due within 3 days, this is the code i currently have but it doesn't seem to fetch the correct tickets when I checked them. 

(created > startOfMonth() AND due <= 3d)

2 answers

1 accepted

1 vote
Answer accepted
RambanamP
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 Champions.
December 5, 2013

you need to do it by using javascript, try with following script

&lt;script type="text/javascript"&gt;
AJS.$("#customfield_11300").parent().children('label').append('&lt;span class="aui-icon icon-required"&gt;&lt;/span&gt;');
&lt;/script&gt;

check this site for more info

http://www.j-tricks.com/1/post/2012/09/silly-javascript-hacks-or-is-it.html

djjay0131
December 5, 2013

How do I put Javascript into a screen?

RambanamP
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 Champions.
December 6, 2013

following way you can add it

1.add it on field description of field configuration

2. you can load it as webresource module in plugin

3. for testing purpose you can add it on anouncement banner

0 votes
LukasG
Contributor
September 22, 2016

A better option would be to use the "Mandatory Fiel Validator" which ships with the plugin "Workflow Essentials for JIRA". (Disclaimer: Its not free and Im one of the Developers)

See https://marketplace.atlassian.com/plugins/de.codecentric.jira.wes/server/overview

Suggest an answer

Log in or Sign up to answer