Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add link type for "User Story" with a different icon #2267

Open
1 task done
harmin-parra opened this issue Dec 25, 2023 · 2 comments
Open
1 task done

[Feature] Add link type for "User Story" with a different icon #2267

harmin-parra opened this issue Dec 25, 2023 · 2 comments
Labels
type:bug Something isn't working

Comments

@harmin-parra
Copy link

harmin-parra commented Dec 25, 2023

Describe the Bug

I want to propose a new Feature.

Currently, Allure proposes a issue link type.

The inconvenience I have is that in my use case, I want to add links to two types of issues (bug & user story) and Allure assigns the same icon to both links
image

I would like to add links to "user stories" and have a different icon associated to those links.

Is it possible to add a link type named story with a different icon associated to it?

It would share the same link pattern of the issue link type

Steps to Reproduce

Let me give you an example of how this new feature should work :

For java: add @Story annotation

class TestMyWebsite {

    @Link(name = "Website", url = "https://dev.example.com/")
    @Issue("AUTH-123")
    @Story("AUTH-124")
    @TmsLink("TMS-456")
    void testAuthentication() {
        // ...
    }
}

For Python: add @allure.story decorator

@allure.link("https://dev.example.com/", name="Website")
@allure.issue("AUTH-123")
@allure.story("AUTH-124")
@allure.testcase("TMS-456")
def test_authentication():
    ...

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Expected Behaviour

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-junit5

What version of Allure Integration you are using?

2.24.1

What version of Allure Report you are using?

2.24.1

Code of Conduct

  • I agree to follow this project's Code of Conduct
@harmin-parra harmin-parra added triage type:bug Something isn't working labels Dec 25, 2023
@baev baev removed the triage label Jan 10, 2024
@noomorph
Copy link
Contributor

noomorph commented May 9, 2024

Hmm... isn't it possible for you to use a workaround like allure.link("https://my-tracker.com/issue/${id}", name="✍ ${id}")? 🤔

@gedeal
Copy link

gedeal commented May 31, 2024

Thanks ;-)
It works like a charm
let id = 'NIT-T346'
allure.link('https://jira.my.on/secure/Tests.jspa#/testCase/${id}', name='✍ 🤔 🔥 '+id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants