Bitbucket issue description missing
Hi all,
I am trying to set up PHPStorm to integrate with BitBucket's issue tracker. I am using their basic issue tracker, not Jira.
I configured a Generic server, and followed these settings which I came across in a few different places.
This works, mostly - I get a list of issue ids and titles. But I am not able to see the full issue description (or any other issue data like created/updated dates).
If I open the "Open Task" dialogue (Tools -> Tasks & Contexts -> Open Task) I see my list of issues, if I highlight one and hit F1 (as described in the docs), I get a small popup showing Summary and ID (which are already shown in the initial list), but no further details. If I choose to "Open as tool window" I get the same ID and Summary, no description, with created/updated dates shown as right now (not the actual issue created/updated dates).
As I understand it the issue description should show up in both those windows - and in fact at the bottom of the open task dialogue confirms that ("Pressing F1 would show task description and comments").
I guess there is something wrong in the field mapping of the various singleTask-* values. I found the BitBucket API issue response documentation, and AFAICT the mapping is correct - content.raw looks like the field I should use for singleTask-description. I tried content.html and content.markup.plaintext but they make no difference.
Am I doing something wrong, or is this simply not supported?
PhpStorm 2020.3.2
Build #PS-203.7148.74, built on January 27, 2021
Licensed to <me>
Subscription is active until June 8, 2021.
Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: de.espend.idea.laravel, lt.martynassateika.idea.codeigniter, ru.adelf.idea.dotenv
Thanks.
请先登录再写评论。
FWIW if I open a task, then go to Tools -> Tasks & Contexts, the "Show <issue id and title> Description" and "Open <issue id and title> in Browser" links are greyed out. So it seems like PHPStorm is not finding either the description or individual issue link in the response from BitBucket.
Nobody else using Bitbucket and tasks?
Can't find anything similar on YouTrack apart from the general ticket for the Bitbucket tasks support:
https://youtrack.jetbrains.com/issue/IDEA-72901
Not sure if the description illustration will work with the Generic task server type but I would recommend submitting your own YouTrack report, probably, there is a way to workaround the limitation.
Thanks for the reply.
Through trial and error I found that actually the singleTask-* fields in the server config field mappings seem to be irrelevant. I instead added the mappings to the other top-level fields and it works. Here they are in case it helps someone in future:
I left all singleTask-* fields blank.
I haven't been able to get the issue URL working. Using the link in the Bitbucket response links.self.href won't work bcs your browser is not logged in at that URL, even if you are logged in to https://bitbucket.org/. I tried adding a new template variable pointing to https://bitbucket.org/ but it seems I can't use a {templateVar} in the mappings. Nor does the "Single Task URL" field in the server config seem to have any effect.
Anyway, this is a big improvement and enough for me for now. Hope it helps someone!
Fantastic, thanks for sharing the solution!