How to search by priority update

Hi,

I was wondering, is there a way to use the Youtrack search bar to find a list of issues sorted by time that priority was updated ?

We want to see how many high priority issues are set on a daily basis. This is different from creation date, since an old issue can become severe long after submission.

Thanks!
9 comments
Comment actions Permalink
Hello!
You can implement it using workflow:
1. Create Custom Field "PriorityUpdated" with "date" type.
(You can uncheck Visible for this CF)
2. Attach following workflow to your project:
rule updatePrioroty 
 
when issue.Priority.changed { 
  issue.PriorityUpdated = now; 
}
prettyPrint();

Then you can search issues using: "sort by: PriorityUpdated"
Results will be sorted by the time that priority was updated.

Regards,
--
Mikhail
0
Comment actions Permalink
Ok, this makes sense to me.
I downloaded and installed YouTrack Workflow Editor.
I see how to create a workflow and create a rule, but I can't get my "Connection Settings" right.

I'm getting the error message - "Can't login user. Found"
Please see this screenshot: http://grab.by/imkC

What could I be doing wrong?
0
Comment actions Permalink
Could you, please, send us Workflow Editor logs.
It is located on {user.home}/.youtrack4.0\system\log
(for example, for Windows: C:\Users\%User_Name%\.youtrack4.0\system\log)

email: [youtrack-feedback@jetbrains.com]
0
Comment actions Permalink
Here's the idea.log from that directory.
idea.log (15KB)
0
Comment actions Permalink
Do you use hosted YouTrack or standalone?
If standalone, could you, please, attach YouTrack logs?
({user.home}/.youtrack/logs)
0
Comment actions Permalink
Our youtrack base URL is http://issues.abine.com

Hmm... I don't have a logs directory in user/.youtrack4.0/
This is on my MacBook Pro.

All I have is:
  • config
  • system
  • youtrack-workflow

Attached are two more log files from user/.youtrack4.0/system/log

Should I be looking somewhere else?

mpsvcs.log (813B)
idea.log (8.1KB)
0
Comment actions Permalink
I meant the YouTrack server logs.
Could you attach it?
I think that the problem is that you use self-signed certificate for YouTrack server.
(When I open your server I see alert "Site certificate is not trusted")

Also, you can try run workflow editor with following parameter:
-Djavax.net.ssl.keyStore=yourSrvKeystore -Djavax.net.ssl.keyStorePassword=123456

Regards,
--
Mikhail
0
Comment actions Permalink
There is another way to attach workflow:
1. Download attached workflow: PriortyUpdated.zip (1.5KB)
2. From YouTrack server, goto Administration -> %Project_Name%, Workflow tab.
3. Click "Import Workwlow" link and select downloaded workflow.
screenshot2.png

4. Select Attached Workflow and click on "Apply Quick Fix". It will create Custom Field "PriorityUpdated" for your project.


Let me know if you have any problem.
Regards,
--
Mikhail
0
Comment actions Permalink
This worked great!
Thanks Mikhail!!!
0

Please sign in to leave a comment.