Skip to content

Fix issuable state indicator

Jan Provaznik requested to merge jprovazn-issueref into master

What does this MR do?

Fixes issuable state indicator

Why was this MR needed?

Issuable reference state check works only in project scope, if we reference an issuable from a non-project resource (e.g. epics), then project is not set, and there is mismatch in generated issue references.

Example: HTML text for an issue referenced from a group is group1/project1#10, but issuable.reference_link_text(nil) returns #10.

If project is not set we try to use group instead.

What are the relevant issue numbers?

Closes gitlab-ee#4683 Related to #30916 (closed)

Edited by Jan Provaznik

Merge request reports