while preparing data we can assign variable to description

 

3 answers

1 accepted

0 vote

I think we need more information

What is "preparing data"?

What "variable" and where would it come from?

I assume "assign to description" means "put content of variable in the description field"?  Would that need to be the whole description or part of it?

For creating issue using rest api, how to send attachment field through post request.

$data = array(

'fields' => array(

'project' => array(

'key' => $key,

),

'summary' => ''.$ROW['bugs'][0]['what'],

'description' => $ROW['bugs'][0]['why'].$ROW['bugs'][0]['how'],
"issuetype" => array(
"name" => $ROW['bugs'][0]['issue'],
),
),

);

this how i'm trying, but 'm not able to create issue in jira.

0 vote

I'm sorry, but that's just a block of code, out of any context, and with no error message or explanation of what it's doing or how. The best I can do is tell you that your code is not sending the right data to JIRA for the creation (I assume it's a REST call)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

485 views 8 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you