Code Monkey home page Code Monkey logo

Comments (19)

qoomon avatar qoomon commented on July 18, 2024

Hi, is there any (public) instance where I can have look at? If so i think i can fix it with ease.

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Hi Bengt, Atlassian has released a new projects called (next-gen) and they have obfuscated the DOM code.... see more here: https://mraddon.blog/2019/01/14/atlassian-is-obfuscating-jira-cloud-why/

About a Jira Cloud free instance for development, please follow these instructions:
https://mraddon.blog/2016/05/11/new-jira-cloud-development-environment-free/

Best regards!

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

The issue is the obfuscation of their classes, I need to have a javascript snippet to get all selected issue keys like NEX-123, however its not that easy anymore.
I've added some hacky workaround code, however I'm not sure if this will be stable at all.
For me the board view of 'next gen projects' works for me.

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

Another workaround is to select all your issues you like to print from https://<URL_OF_YOUR_JIRA>/issues and select the list view (not the one with the preview panel, because than you can only print the selected issue), here the card print will work as expected.

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

its broken again :-/. any ideas?

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Hi Bengt, I see it working! To select the tickets in the next-gen boards you must use "Cmd" key in Mac. The "Shift" key only works in the old boards.

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

captura de pantalla 2019-02-10 a las 11 43 09
captura de pantalla 2019-02-10 a las 11 42 23

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

For some reasons it only works on Kannan board. Maybe they are developing actively on the scrum board and therefore the class "hash values" changed more often.
Do anyone know how this obfuscation works?

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Hi Bengt, In the next-gen scrum boards it works
captura de pantalla 2019-02-10 a las 20 30 45
captura de pantalla 2019-02-10 a las 20 31 19
captura de pantalla 2019-02-10 a las 20 31 25

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

In the old SCRUM and KANBAN it works fine (checked) and in the new next-gen also works fine!
About the obfuscation in your case I think there is no problem Bengt!

I think Atlassian is using this https://stackoverflow.com/questions/50870666/css-class-names-in-atlassians-jira-are-obfuscated

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

In dead it works :-D
okay then i will close this issue for now. please reopen if it stops working again.

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

I have checked again and it works fine in all boards, except in the backlog of the next-gen projects. I do not understand how it was working a little time ^^ (the proof is the screenshot!)

The new screenshot:
captura de pantalla 2019-02-10 a las 21 28 47

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

I made some test as well and it seams to work sometimes and sometimes it does not. The css classes changes for some reasons in an unpredictable way 😮

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Ooopssss then probably is impossible... :S

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

I might found a way to fix it, find selected issues by background color, little hacky but it seems to work

Array.from(document.querySelectorAll('div[tabindex]')).filter((element) => {
    let style = getComputedStyle(element);
    return ( style.backgroundColor == 'rgb(222, 235, 255)' );
}) 

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

I've released a fix. please confirm.

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Wow amazing trick! I will test this weekend! Thanks Bengt

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

Actually I don't understand why i didn't have this idea before. It is the most obvious solution to select by visual colors :-D

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

It worked wonders! Spectacular! Thanks Bengt

from jira-issue-card-printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.