Git Product home page Git Product logo

Comments (3)

ankitpokhrel avatar ankitpokhrel commented on May 28, 2024

Hi @vyprabhu are you just running jira issue edit --label "abc" --no-input or you are streaming contents from stdin echo "something" | jira issue edit --label "abc" --no-input?

from jira-cli.

vyprabhu avatar vyprabhu commented on May 28, 2024

So basically, i'm searching for some keys matching a particular criteria and then I am running "jira issue edit --label "abc" --no-input" thru bash script to update the label for each key. I'm not piping anything to this command.

from jira-cli.

vyprabhu avatar vyprabhu commented on May 28, 2024

@ankitpokhrel

Not sure if you progressed on this one... I found a workaround in the meantime.

Research and Discovery : I observed that the command jira issue edit --label "abc" --no-input still follows the approach of jira issue edit --label "abc" and it waits for an "Enter" command for the description field even if you provide no-input parameter. And hence it pulls the previous output of stdin.

Workaround / Solution : The below workaround was discovered to add char code for "Enter" in the Description field alongwith --no-input to stop the command from piping in stdin:

jira issue edit -b$'\x0a' -l"$lbl" --no-input

Note that the $'\x0a' in the description field referred to as '-b' acts as an enter command without any input / amendment to the description field.

from jira-cli.

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.