Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:49:06+00:00 2026-05-28T02:49:06+00:00

I am trying to get issue details from JIRA 3.13 using PHP SOAP. I

  • 0

I am trying to get issue details from JIRA 3.13 using PHP SOAP. I was able to login and get the issues; however, on one of my field, I could not get the new line formatting. So, all I got is the text for that particular field without new line character (everything just append into a single line of text). As of now, I am guessing php also did some re-formatting of the string from SOAP. The reason I am saying this is because I did some testing with SOAP UI and was able to get the text out with the formatting. Can anyone help me out with a way to displaying the text with the formatting? Thanks in advance.

This is my php code:

try {
    $soap   = new SoapClient("<<JIRA URL>>");
    $auth   = $soap->login($formUsername, $formPassword);

    if ($auth)
    {

        $result0 = $soap->getIssue($auth,'<<JIRA ISSUE ID>>');

        $result = (array) $result0;

        foreach ($result as $key => $a)
        {
            $z = $z . '<br/>' . $key . ' = ' . $a;
        }

        echo $z;
    }
}
catch(Exception $e){
    $string = urlencode($e->getMessage());
    header("Location: login.php?message=".$string);
    die();
}

I just realize that I do not need to convert it into array.
Simply do the following:

    foreach ($result0 as $key => $a)
    {
        $z = $z . '<br/>' . $key . ' = ' . $a;
    }

This, however, still does not solve my problem with the new line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:49:07+00:00Added an answer on May 28, 2026 at 2:49 am

    Isn’t it just because you don’t change the linefeeds into <br/> before outputting it?

    Should be easy to find out if that’s the case just by looking at the source in the browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue here, I am trying to get all the titles from
I'm trying get values from a GridView using the following code: foreach (GridViewRow row
I'm trying to get a queryset to issue its query over a different DB
I am trying to get my head around a LINQ issue. The ultimate goal
The issue I'm having is issue with is I'm trying to get the paintComponent
I'm trying to get started with twitter4r but I'm having some issues: Why I
I'm just trying to get started with NDjango but am having issues running a
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
I am trying to test a WCF service using the basichttpbinding endpoint from the
I am trying to edit a word document from VB.NET using for the most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.