Hi,
My ultimate goal is to help find easy way to 1. identify blocked issues, 2. track how long issues are blocked and 3. decipher what type of blocker is it.
I think I have found a solution for #1 and #2 by using the Flag feature and using some combination of automation rules and custom fields like Blocked_Start_Time and Blocked_End_Time and Blocked_Total_Time.
My question for #3 above though is, is there a way to configure a dialog box to pop up on the screen whenever a user sets the Flag on an issue, which would then prompt the user to fill in the Blocker Type field value (assuming this would be a new custom field) with a drop down pre-defined list of values such as "Need Requirements", "External Team", "Environment issue" etc...
Hello,
It should be like this:
import java.text.SimpleDateFormat
import java.sql.Timestamp
import java.text.DateFormat
import java.util.Date
Collection versions = issue.getFixVersions()
if (versions==null || versions.size()!=1)
return null
def version = versions.iterator().next()
SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd-MM-yyyy");
DATE_FORMAT.format(new Date(version.releaseDate.time);
@Alexey Matveev Hi Alexey. Thank you for the response.
For the last line, getting the error pop up as 'unexpected token' and the script returns no value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import java.text.SimpleDateFormat
import java.sql.Timestamp
import java.text.DateFormat
import java.util.Date
Collection versions = issue.getFixVersions()
if (versions==null || versions.size()!=1)
return null
def version = versions.iterator().next()
SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd-MM-yyyy");
return DATE_FORMAT.format(new Date(version.releaseDate.time));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Getting this error,
Script Fields java.lang.Exception: The search indexer: class com.atlassian.jira.issue.customfields.searchers.DateTimeRangeSearcher expected your script to return a java.util.Date, but it returned an java.lang.String. We couldn't convert it to a java.util.Date
How to fix this ? Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is that your searcher is com.atlassian.jira.issue.customfields.searchers.DateTimeRangeSearcher. You can change it to the free text.
Also have a look at this thread
https://community.atlassian.com/t5/Adaptavist-questions/Date-format-for-script-field/qaq-p/698130
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The thread you shared was perfect ! Fixed it using the Custom template. Thank you so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.