Morning;
I need need to extract the issue type, and the issue status, and when I put this script, the logger.info nothing extract.
But when I put this other:
The result is :
So I don't know why in the first code doesn't work :
if (tipo == 'Historia'){
logger.info('tipo-->'+tipo)
}
Hello,
issue type probably returns an "IssueType" instead of string. You can check the type with getClass(). It should work if you convert it to string: tipo.toString().
Regards,
Elifcan
Sorry...
I put the getClass() like this:
if (tipo.toString() == 'Historia'){
logger.info('tipo-->'+tipo)
}
And the the problem continues...
Thank's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
So what does it do when you put it like this, what is the behavior? It returns nothing or returns an error? I can't think of any reason why it shouldn't work like this. Maybe try it with equals like:
tipo.toString().equals('Historia')
Sorry, I couldn't be more help.
Regards,
Elifcan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I put the code retuns this:
thank you very much for the help, but I don't know what the problem is,nor with the code that you have put me back to work.
Don't worry, in the end I will find the way to see all the Story of a project with SubTask in a specific state. This is my aim.
Thank's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Whit tipo.toString().equals('Historia'):
the same. Really yo don't worry I Thank you for all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I hope that you can get it to work. I will try to replicate it when I have some free time.
Best,
Elifcan
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.