I want to add a quick link that lets a user create a new defect against the current iteration, so that the dev team can take action on it immediately.
I tried setting it up this way:
+ <a href="/mingle/projects/
project
/cards/new?properties[Type]=Story&properties[Story type]=Defect&properties[Iteration]=" accessKey="D">New bug</a>
project-variable
name: Current iterationwhich resulted in this rendered in the preview:
+ #5117 4/24/09” accessKey=”D”>New bug
Clearly not what I'm looking for. I guess what's happening is the current iteration is coming out wrapped in an HTML <A> tag? Is there some way to get the real content so that it can be used to set the property?
Even if this is not possible (in which case I'll just have to keep the link up to date, bit of a pain), the other thing I'm going to need to do is set some reporting variables (eg added to iteration on date). For this, I'll need a today variable. How do I get at that?
Comments
2 comments
Rather than using the project-variable macro, you can use the variable name in the link, like this:
+ <a href="/mingle/projects/{{ project }}/cards/new?properties[Type]=Story&properties[Story type]=Defect&properties[Iteration]=(Current iteration)" accessKey="D">New bug</a>
For the reporting dates, you can use, "(Today)". E.g., "properties[added to iteration on date]=(Today)"
Perfect, that's what I'm looking for. Thanks
Please sign in to leave a comment.