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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are you using for scripting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.