osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: [Script Runner] How to check a custom field
value in a workflow validator? - msg#00465

List: java-jira-devel

java-jira-devel Navigation:
Date: Prev Next Date Index Thread: Prev Next Thread Index

Website Performance Monitoring

Answering my own question:

{code}
com.atlassian.jira.ComponentManager.getInstance().getCustomFieldManager().getCustomFieldObjectByName('Name
of my custom field').getValue(issue)[0] == 'Yes'
{code}
--
Post by festerwim - online at:
http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54137


Thread at a glance:

Previous Message by Date:

[Script Runner] How to check a custom field value in a workflow validator?

Hi, I want to use the Script runner plugin to check if a "multi checkbox" custom field is selected (In fact, it has only 1 option 'Yes') in a workflow validator? I tried this: {code} cfValues['10203'] != 'Yes' {code} But that does not work. The value is always null. regards, Wim -- Post by festerwim - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54137

Next Message by Date:

How to get Informations about ParentTask or Subtask via SOAP

Hello, how can I get Informtion about which Task is Subtask of another via SOAP. When I See the WSDL I don#t find anything like this. When I Get an Issue there is no Information about a Parent or Subtask only the Typ indicate if it is Subtask or not. How can I get this together, to find the ParentTask for a Subtask via SOAP. regards Chris -- Post by kekskennzeichen - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54142

Previous Message by Thread:

[Script Runner] How to check a custom field value in a workflow validator?

Hi, I want to use the Script runner plugin to check if a "multi checkbox" custom field is selected (In fact, it has only 1 option 'Yes') in a workflow validator? I tried this: {code} cfValues['10203'] != 'Yes' {code} But that does not work. The value is always null. regards, Wim -- Post by festerwim - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54137

Next Message by Thread:

Re: [Script Runner] How to check a custom field value in a workflow validator?

Alternatively: cfValues['Multi Checkboxes'][0] == 'Yes' cheers, jamie -- Post by JamieEchlin - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54137
blog comments powered by Disqus
Source may include planetjava

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too! | Source may include bb10