Universal Validator

I am trying to write a workflow validator for a project. When the user creates an issue, I want the summary to require a specific string and include the reporters name. I have tried several metheods but all of them fail. Thais is what I have, any help would be great.

{Summary} = "Some Text" & {Reporter}

I have also tried:

{Summary} = "Some Text" & [user]

there were the closest i could get but it still fails

4 answers

This widget could not be displayed.

Hello Bradley,

unfortunately, the only macros that are supported right now are [user] and [now] for the current user and the current time, respectively. We see how it makes sense to include support for other fields and might implement that in the future. I have created a feature request at: https://tngtech-oss.atlassian.net/browse/JWFE-37

However, there are still bugs to work on that we think have higher priority. As we work on the plugin in our spare time, we unfortunately cannot promise when that feature will be implemented. But, since the plugin is open source, we invite any coders out there to collaborate.

Cheers,

Ruben Straube

This widget could not be displayed.

What are you using for scripting?

This widget could not be displayed.

I have trid using script runner but cannot get the syntax down, i would like to simplify this with just using the "Universal Validator" validator. If I separate the two requirement, they each work, but it's when I try to combine them that it fails. For example

I enter as a validator

{Summary} = "User Access Request" this works and the issue is created

I enter as a validator

{Summary} = {Reporter} this works as long as I remove the previous validator mentioned above.

I cannot figure out how to get the two requirements to work together. Does this make sense?

I did get this to pass the boolean syntax check, but when i attemt to create a ticket, it fails

(({Summary} = " User Access Request" ) + ( {Summary} ={Reporter} ))

I know I am getting closer but am still stuck..

Thanks for any help you can offer

This widget could not be displayed.

I suppose you're talking about the "Workflow Enhancer" for JIRA.

Documentation is here: https://tngtech-oss.atlassian.net/wiki/display/JWFE/Workflow+Enhancer+for+JIRA+Documentation

Please refer to that document to get the syntax right

Radu,

Thanks for the help, unfortunately, I have been thru that doc and it is still not clear. I have zero programming or scripting experience. Most of the docs I have read assume some level of understanding, which I do not have.

and guidence as to how to make this work would be great

bradley

Hi Bradley,

Unfortunately I cannot help you (we're with JJUPIN, and we have little knowledge of other workflow plugins). From what I see, you should use a dynamic regex, but I cannot be sure if it works of if WE supports it, and I do not have time to check it.

Please mark the answer as non-definitive, so somebody with a better understanding of this plugin to be able to help you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 5 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

23 views 1 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you